"Fossies" - the Fresh Open Source Software Archive

Member "btrfs-progs-v5.4.1/Documentation/Makefile.in" (9 Jan 2020, 3625 Bytes) of package /linux/misc/btrfs-progs-v5.4.1.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.in": v5.4_vs_v5.4.1.

    1 # Guard against environment variables
    2 MAN8_TXT =
    3 
    4 # Top level commands
    5 MAN8_TXT += btrfs.asciidoc
    6 MAN8_TXT += btrfs-convert.asciidoc
    7 MAN8_TXT += btrfs-find-root.asciidoc
    8 MAN8_TXT += btrfs-image.asciidoc
    9 MAN8_TXT += btrfs-map-logical.asciidoc
   10 MAN8_TXT += btrfs-select-super.asciidoc
   11 MAN8_TXT += btrfstune.asciidoc
   12 MAN8_TXT += fsck.btrfs.asciidoc
   13 MAN8_TXT += mkfs.btrfs.asciidoc
   14 
   15 # Sub commands for btrfs
   16 MAN8_TXT += btrfs-subvolume.asciidoc
   17 MAN8_TXT += btrfs-filesystem.asciidoc
   18 MAN8_TXT += btrfs-balance.asciidoc
   19 MAN8_TXT += btrfs-device.asciidoc
   20 MAN8_TXT += btrfs-scrub.asciidoc
   21 MAN8_TXT += btrfs-check.asciidoc
   22 MAN8_TXT += btrfs-rescue.asciidoc
   23 MAN8_TXT += btrfs-inspect-internal.asciidoc
   24 MAN8_TXT += btrfs-send.asciidoc
   25 MAN8_TXT += btrfs-receive.asciidoc
   26 MAN8_TXT += btrfs-quota.asciidoc
   27 MAN8_TXT += btrfs-qgroup.asciidoc
   28 MAN8_TXT += btrfs-replace.asciidoc
   29 MAN8_TXT += btrfs-restore.asciidoc
   30 MAN8_TXT += btrfs-property.asciidoc
   31 
   32 # Category 5 manual page
   33 MAN5_TXT += btrfs-man5.asciidoc
   34 
   35 MAN3_TXT += btrfs-ioctl.asciidoc
   36 
   37 MAN_TXT = $(MAN3_TXT) $(MAN8_TXT) $(MAN5_TXT)
   38 MAN_XML = $(patsubst %.asciidoc,%.xml,$(MAN_TXT))
   39 MAN_HTML = $(patsubst %.asciidoc,%.html,$(MAN_TXT))
   40 MAN3 = $(patsubst %.asciidoc,%.3,$(MAN3_TXT))
   41 MAN5 = $(patsubst %.asciidoc,%.5,$(MAN5_TXT))
   42 MAN8 = $(patsubst %.asciidoc,%.8,$(MAN8_TXT))
   43 
   44 mandir ?= $(prefix)/share/man
   45 man3dir = $(mandir)/man3
   46 man5dir = $(mandir)/man5
   47 man8dir = $(mandir)/man8
   48 
   49 XMLTO = @XMLTO@
   50 XMLTO_EXTRA = -m manpage-bold-literal.xsl
   51 
   52 ifeq (@ASCIIDOC_TOOL@,asciidoc)
   53 ASCIIDOC = @ASCIIDOC@
   54 ASCIIDOC_ARGS = -abtrfs_version=$(BTRFS_VERSION) -f asciidoc.conf
   55 ASCIIDOC_HTML = html
   56 ASCIIDOC_DOCBOOK = docbook
   57 ASCIIDOC_DEPS = asciidoc.conf
   58 endif
   59 ifeq (@ASCIIDOC_TOOL@,asciidoctor)
   60 ASCIIDOC = @ASCIIDOCTOR@
   61 ASCIIDOC_ARGS = -abtrfs_version=$(BTRFS_VERSION)
   62 ASCIIDOC_HTML = xhtml5
   63 ASCIIDOC_DOCBOOK = docbook5
   64 XMLTO_EXTRA += --skip-validation
   65 ASCIIDOC_DEPS = 
   66 endif
   67 
   68 MANPAGE_XSL = manpage-normal.xsl
   69 INSTALL = @INSTALL@
   70 RM = @RM@
   71 RMDIR = @RMDIR@
   72 LN_S = @LN_S@
   73 MV = @MV@
   74 SED = @SED@
   75 BTRFS_VERSION = $(shell $(SED) -n 's/.*PACKAGE_VERSION "\(.*\)"/\1/p'\
   76 		  ../config.h)
   77 
   78 ifneq ($(findstring $(MAKEFLAGS),s),s)
   79 ifndef V
   80 	QUIET_RM	= @
   81 	QUIET_ASCIIDOC	= @echo "    [ASCII]  $@";
   82 	QUIET_XMLTO	= @echo "    [XMLTO]  $@";
   83 endif
   84 endif
   85 
   86 all: man
   87 man: man3 man5 man8
   88 man3: $(MAN3)
   89 man5: $(MAN5)
   90 man8: $(MAN8)
   91 html: $(MAN_HTML)
   92 
   93 install: install-man
   94 
   95 install-man: man
   96 	$(INSTALL) -d -m 755 $(DESTDIR)$(man5dir)
   97 	$(INSTALL) -d -m 755 $(DESTDIR)$(man8dir)
   98 	$(INSTALL) -m 644 $(MAN5) $(DESTDIR)$(man5dir)
   99 	# the source file name of btrfs.5 clashes with section 8 page, but we
  100 	# want to keep the code generic
  101 	$(MV) $(DESTDIR)$(man5dir)/btrfs-man5.5 $(DESTDIR)$(man5dir)/btrfs.5
  102 	$(INSTALL) -m 644 $(MAN8) $(DESTDIR)$(man8dir)
  103 	$(INSTALL) -m 644 btrfsck.8 $(DESTDIR)$(man8dir)
  104 
  105 uninstall:
  106 	cd $(DESTDIR)$(man8dir); rm -f btrfs-check.8 $(MAN8)
  107 	$(RMDIR) -p --ignore-fail-on-non-empty $(DESTDIR)$(man8dir)
  108 
  109 clean:
  110 	$(QUIET_RM)$(RM) -f $(MAN_XML) *.xml+ $(MAN3) $(MAN5) $(MAN8) $(MAN_HTML)
  111 
  112 %.3 : %.xml
  113 	$(QUIET_XMLTO)$(RM) -f $@ && \
  114 	$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
  115 
  116 %.5 : %.xml
  117 	$(QUIET_XMLTO)$(RM) -f $@ && \
  118 	$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
  119 
  120 %.8 : %.xml
  121 	$(QUIET_XMLTO)$(RM) -f $@ && \
  122 	$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
  123 
  124 %.xml : %.asciidoc $(ASCIIDOC_DEPS)
  125 	$(QUIET_ASCIIDOC)$(RM) -f $@+ $@ && \
  126 	$(ASCIIDOC) $(ASCIIDOC_ARGS) -b $(ASCIIDOC_DOCBOOK) -d manpage -o $@+ $< && \
  127 	$(MV) $@+ $@
  128 
  129 %.html : %.asciidoc $(ASCIIDOC_DEPS)
  130 	$(QUIET_ASCIIDOC)$(RM) -f $@+ $@ && \
  131 	$(ASCIIDOC) $(ASCIIDOC_ARGS) -b $(ASCIIDOC_HTML) -d article -o $@+ $< && \
  132 	$(MV) $@+ $@