Ignore:
Timestamp:
28/03/2009 14:01:39 (3 years ago)
Author:
chris
Message:

Use the Makefile in docs/ to build and clean documentation.

Don't rely on location of bb-man.xsl any more.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/makeparcels.pl.in

    r2469 r2475  
    111111        print MAKE "\tfind release debug -type f -exec rm -f {} \\;\n"; 
    112112} 
    113 print MAKE "\trm -rf docs/*.[58] docs/bb-man.xsl docs/man\n" if $product_version =~ /trunk_[0-9]+/; 
    114  
    115 print MAKE "\n"; 
    116  
    117 print MAKE "test:\trelease/common/test\n\nrelease/common/test:\n\t./runtest.pl ALL release\n\n"; 
    118  
    119 print MAKE <<EOF if $product_version =~ /trunk_[0-9]+/; 
    120 .PHONY: docs/bb-man.xsl 
    121 docs/bb-man.xsl: 
    122         (cd docs; \$(MAKE) bb-man.xsl; if [ ! -d man ]; then mkdir man; fi) 
    123  
    124 EOF 
     113 
     114print MAKE <<__END_OF_FRAGMENT; 
     115        \$(MAKE) -C docs clean 
     116 
     117test:   release/common/test 
     118 
     119release/common/test: 
     120        ./runtest.pl ALL release 
     121 
     122.PHONY: docs 
     123docs: 
     124        \$(MAKE) -C docs 
     125 
     126__END_OF_FRAGMENT 
    125127 
    126128my $release_flag = BoxPlatform::make_flag('RELEASE'); 
     
    210212 
    211213EOF 
    212                         # Only build the docs if we're building from trunk. 
    213                         # Releases have the docs pre-made. 
     214                        # Releases have the docs pre-made, but users 
     215                        # may want to rebuild them for some reason. 
    214216                        print MAKE <<EOF; 
    215217.PHONY: docs/man/${name}.gz 
    216 docs/man/${name}.gz: docs/bb-man.xsl 
    217         (cd docs; \$(MAKE) $name) 
     218docs/man/${name}.gz: 
     219        \$(MAKE) -C docs man/${name}.gz 
    218220 
    219221EOF 
Note: See TracChangeset for help on using the changeset viewer.