Changeset 2477 for box/trunk/docs
- Timestamp:
- 28/03/2009 15:41:09 (3 years ago)
- File:
-
- 1 edited
-
box/trunk/docs/Makefile (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/docs/Makefile
r2474 r2477 13 13 MANXSL = $(DOCBOOK_DIR)/bb-man.xsl 14 14 15 # VPATH= adminguide 16 # .SUFFIXES: .html .xml.1 .5 .815 VPATH = $(DOCBOOK_DIR) 16 .SUFFIXES: .html .xml .gz .1 .5 .8 17 17 18 18 all: docs … … 24 24 @cp $(DOCBOOK_DIR)/html/*.ico $(HTML_DIR)/. 25 25 26 adminguide: $( HTML_DIR)/adminguide/index.html26 adminguide: $(DOCBOOK_DIR)/ExceptionCodes.xml $(HTML_DIR)/adminguide/index.html 27 27 28 $(HTML_DIR)/adminguide/index.html: $(DOCBOOK_DIR)/adminguide.xml $(DOCBOOK_DIR)/ExceptionCodes.xml $(BOOKXSL) 29 # docname=`echo $@ | sed -e 's/\/index.html//'` 30 $(DBPROC) -o $(HTML_DIR)/adminguide/ $ (BOOKXSL) $<28 # all sources ($>) is exactly the right args for xsltproc 29 $(HTML_DIR)/adminguide/index.html: $(BOOKXSL) $(DOCBOOK_DIR)/adminguide.xml 30 $(DBPROC) -o $(HTML_DIR)/adminguide/ $> 31 31 32 32 instguide: $(HTML_DIR)/instguide/index.html 33 33 34 $(HTML_DIR)/instguide/index.html: $( DOCBOOK_DIR)/instguide.xml $(BOOKXSL)35 $(DBPROC) -o $(HTML_DIR)/instguide/ $ (BOOKXSL) $<34 $(HTML_DIR)/instguide/index.html: $(BOOKXSL) $(DOCBOOK_DIR)/instguide.xml 35 $(DBPROC) -o $(HTML_DIR)/instguide/ $> 36 36 37 # $< is empty on BSD make when making this rule, $> has all sources 38 # $< has the target on GNU make, $> is empty 37 39 $(DOCBOOK_DIR)/ExceptionCodes.xml: ../ExceptionCodes.txt 38 perl tools/generate_except_xml.pl $< $ @40 perl tools/generate_except_xml.pl $< $> $@ 39 41 40 42 manpages: $(MANXSL) man-dirs man-nroff man-html … … 59 61 60 62 man/.there: 61 thenmkdir -p man63 mkdir -p man 62 64 touch man/.there 63 65 … … 77 79 man-html: $(HTML_FILES) 78 80 81 # GNU make 79 82 $(HTML_DIR)/man-html/%.html: $(DOCBOOK_DIR)/%.xml $(NOCHUNKBOOKXSL) 80 83 $(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $< 81 84 85 # GNU make 82 86 $(MAN_DIR)/%.8.gz: $(DOCBOOK_DIR)/%.xml $(MANXSL) 83 87 $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 84 88 gzip $(@:.gz=) 85 89 90 # GNU make 86 91 $(MAN_DIR)/%.5.gz: $(DOCBOOK_DIR)/%.xml $(MANXSL) 87 92 $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 88 93 gzip $(@:.gz=) 94 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. 98 .for MAN_PAGE in $(NROFF_PAGES) : 99 $(MAN_DIR)/$(MAN_PAGE).gz: $(DOCBOOK_DIR)/$(MAN_PAGE:R).xml 100 $(DBPROC) -o $(.TARGET:.gz=) $(MANXSL) $> 101 gzip $(@:.gz=) 102 103 $(HTML_DIR)/man-html/$(MAN_PAGE:R).html: $(DOCBOOK_DIR)/$(MAN_PAGE:R).xml 104 $(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $> 105 .endfor : 89 106 90 107 dockit: clean docs
Note: See TracChangeset
for help on using the changeset viewer.
