]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed directory bugs.
authorBob Stayton <bobs@sagehill.net>
Tue, 23 Oct 2001 08:11:31 +0000 (08:11 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 23 Oct 2001 08:11:31 +0000 (08:11 +0000)
contrib/xsl-custom/newolink/examples/Makefile

index 986224727691b8d41db9a658bd46517f76f99739..9cc061e566ddf8c6f31ea059f05a629732858f9e 100644 (file)
@@ -17,13 +17,15 @@ reftargets.xml : ref.xml
 # Single-file output user guide
 
 $(UG-BASEURI) : userguide.xml reftargets.xml targetdb.xml ugtargets.xml
-       xsltproc --param target.database.document '"../docsrc/targetdb.xml"' \
+       test -d ../docroot/UserGuide || mkdir -p ../docroot/UserGuide
+       xsltproc --param target.database.document '"../examples/targetdb.xml"' \
                ../tools/custom.xsl userguide.xml > $(UG-BASEURI) 2> ug.err
 
 # Chunked output reference
 
 $(REF)/index.html : ref.xml ugtargets.xml targetdb.xml reftargets.xml
-       xsltproc --param target.database.document '"../docsrc/targetdb.xml"' \
+       test -d ../docroot/Reference || mkdir -p ../docroot/Reference
+       xsltproc --param target.database.document '"../examples/targetdb.xml"' \
                 --output "../docroot/Reference/" \
                 --param quiet 1 \
                ../tools/chunkcustom.xsl ref.xml  2> ref.err
@@ -45,22 +47,23 @@ modtargets.xml : $(SRC)
 
 # Process the whole book
 modular: modtargets.xml
+       test -d ../docroot/Modular || mkdir -p ../docroot/Modular
        rm -f ../docroot/Modular/*
-       xsltproc --param target.database.document '"../docsrc/targetdb.xml"' \
+       xsltproc --param target.database.document '"../examples/targetdb.xml"' \
                --xinclude \
                 --output "../docroot/Modular/" \
                ../tools/chunkcustom.xsl modular.xml 2> mod.err
 
 # Process the preface only
 preface : preface.xml
-       xsltproc --param target.database.document '"../docsrc/targetdb.xml"' \
+       xsltproc --param target.database.document '"../examples/targetdb.xml"' \
                --xinclude \
                 --output "../docroot/Modular/" \
                ../tools/chunkcustom.xsl preface.xml 
 
 # Process the chapter only
 intro : introduction.xml
-       xsltproc --param target.database.document '"../docsrc/targetdb.xml"' \
+       xsltproc --param target.database.document '"../examples/targetdb.xml"' \
                --xinclude \
                 --output "../docroot/Modular/" \
                ../tools/chunkcustom.xsl introduction.xml