Changeset 2489 for box/trunk/docs


Ignore:
Timestamp:
31/03/2009 20:56:09 (3 years ago)
Author:
chris
Message:

Hopefully fix building and cleaning of bb-man.xsl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/docs/Makefile

    r2488 r2489  
    4040        perl tools/generate_except_xml.pl $< $> $@ 
    4141 
    42 manpages: $(MANXSL) man-dirs man-nroff man-html 
     42manpages: man-dirs man-nroff man-html 
     43 
     44xslt: $(MANXSL) 
    4345 
    4446$(MANXSL): $(MANXSL).tmpl 
     
    8385        $(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $< 
    8486 
     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 
    8594# GNU make 
    86 $(MAN_DIR)/%.8.gz: $(DOCBOOK_DIR)/%.xml $(MANXSL) 
     95$(MAN_DIR)/%.8.gz: $(DOCBOOK_DIR)/%.xml 
     96        $(MAKE) xslt 
    8797        $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 
    8898        gzip $(@:.gz=) 
    8999 
    90100# GNU make 
    91 $(MAN_DIR)/%.5.gz: $(DOCBOOK_DIR)/%.xml $(MANXSL) 
     101$(MAN_DIR)/%.5.gz: $(DOCBOOK_DIR)/%.xml 
     102        $(MAKE) xslt 
    92103        $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 
    93104        gzip $(@:.gz=) 
    94105 
    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 
    98110.for MAN_PAGE in $(NROFF_PAGES) : 
    99111$(MAN_DIR)/$(MAN_PAGE).gz: $(DOCBOOK_DIR)/$(MAN_PAGE:R).xml 
     112        $(MAKE) xslt 
    100113        $(DBPROC) -o $(.TARGET:.gz=) $(MANXSL) $> 
    101114        gzip $(@:.gz=) 
Note: See TracChangeset for help on using the changeset viewer.