Changeset 2489 for box/trunk/docs
- Timestamp:
- 31/03/2009 20:56:09 (3 years ago)
- File:
-
- 1 edited
-
box/trunk/docs/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/docs/Makefile
r2488 r2489 40 40 perl tools/generate_except_xml.pl $< $> $@ 41 41 42 manpages: $(MANXSL) man-dirs man-nroff man-html 42 manpages: man-dirs man-nroff man-html 43 44 xslt: $(MANXSL) 43 45 44 46 $(MANXSL): $(MANXSL).tmpl … … 83 85 $(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $< 84 86 87 # Before running xsltproc to generate manual pages, we need to check 88 # that $(MANXSL) has been built. We don't want to add it to dependencies, 89 # because that would cause # the man pages to try to be rebuilt even if 90 # they already exist if the date of the xslt file changes, and that 91 # requires xsltproc, which negates the point of precompiling them for 92 # distribution users. 93 85 94 # GNU make 86 $(MAN_DIR)/%.8.gz: $(DOCBOOK_DIR)/%.xml $(MANXSL) 95 $(MAN_DIR)/%.8.gz: $(DOCBOOK_DIR)/%.xml 96 $(MAKE) xslt 87 97 $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 88 98 gzip $(@:.gz=) 89 99 90 100 # GNU make 91 $(MAN_DIR)/%.5.gz: $(DOCBOOK_DIR)/%.xml $(MANXSL) 101 $(MAN_DIR)/%.5.gz: $(DOCBOOK_DIR)/%.xml 102 $(MAKE) xslt 92 103 $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 93 104 gzip $(@:.gz=) 94 105 95 # BSD make: the final colon (:) is required to make this line valid syntax 96 # for a dummy rule in GNU make. It creates a dummy rule in BSD make too. 97 # Both dummy rules are harmless. 106 # BSD make: the final colon (:) is required to make the .for and .endfor 107 # lines valid in GNU make. It creates (different) dummy rules in GNU and 108 # BSD make. Both dummy rules are harmless. 109 98 110 .for MAN_PAGE in $(NROFF_PAGES) : 99 111 $(MAN_DIR)/$(MAN_PAGE).gz: $(DOCBOOK_DIR)/$(MAN_PAGE:R).xml 112 $(MAKE) xslt 100 113 $(DBPROC) -o $(.TARGET:.gz=) $(MANXSL) $> 101 114 gzip $(@:.gz=)
Note: See TracChangeset
for help on using the changeset viewer.
