]> granicus.if.org Git - docbook-dsssl/commitdiff
Corrections to Makefile listing.
authorBob Stayton <bobs@sagehill.net>
Sun, 12 Jan 2003 22:56:38 +0000 (22:56 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 12 Jan 2003 22:56:38 +0000 (22:56 +0000)
website/example/build-make.xml

index a9b12bf1f406906e7fa473f2b71cec188bc3edef..9f55ddc745f0a84f382195f7e0d413bf1278527a 100644 (file)
@@ -6,7 +6,6 @@
 <title>Building with Make</title>
 <titleabbrev>Using Make</titleabbrev>
 <summary>Building with Make</summary>
-<headlink rel="linktest" type="nop"/>
 </head>
 
 <para>The following instructions work with recent versions of GNU Make;
@@ -21,13 +20,12 @@ file.</para></listitem>
 <listitem><para>Create a skeletal <filename>Makefile</filename> like this:
 </para>
 
-<programlisting><![CDATA[PROC=xslproc
+<programlisting><![CDATA[PROC=xsltproc
 STYLEDIR=../xsl
 TABSTYLE=$(STYLEDIR)/tabular.xsl
 STYLESHEET=$(TABSTYLE)
-
-# Note: you must set the autolayout-file to a fully qualified path!
-STYLEOPT="autolayout-file=/full/path/to/autolayout.xml"
+# Change the path in output-root to put your HTML output elsewhere
+STYLEOPT= --stringparam output-root .
 
 .PHONY : clean
 
@@ -37,14 +35,14 @@ all:
 include depends.tabular
 
 autolayout.xml: layout.xml
-       $(PROC) $< $(STYLEDIR)/autolayout.xsl $@
+       $(PROC) --output $@ $(STYLEDIR)/autolayout.xsl $<
        make depends
 
 %.html: autolayout.xml
-       $(PROC) $(filter-out autolayout.xml,$^) $(STYLESHEET) $@ $(STYLEOPT)
+       $(PROC) --output $@  $(STYLEOPT)  $(STYLESHEET)  $(filter-out autolayout.xml,$^) 
 
 depends: autolayout.xml
-       $(PROC) $< ../xsl/makefile-dep.xsl depends.tabular
+       $(PROC) --output depends.tabular $(STYLEOPT) $(STYLEDIR)/makefile-dep.xsl $<
 ]]></programlisting>
 
 <para>You'll have to change the <literal>PROC</literal> setting and