]> granicus.if.org Git - docbook-dsssl/commitdiff
cvstools/Makefile, include instead of hard-coding application
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 1 Apr 2005 15:06:35 +0000 (15:06 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 1 Apr 2005 15:06:35 +0000 (15:06 +0000)
names; "depends.tabular" and "depends.textonly", switched to
instead of .tabular and .textonly names, to match names in
../website/xsl/makefile-dep.xsl; "realclean" target added (to
remove depends)

website/example/Makefile

index 53b3ab854a51ee8b8dab60ecb44832ecebd40060..da5017aca374442d12c7ecc11f887c57c8864d29 100644 (file)
@@ -1,5 +1,5 @@
-PROC=saxon
-PROCOPT=-q
+include ../../cvstools/Makefile.incl
+XSLTOPT=-q
 TABSTYLE=../xsl/tabular.xsl
 WEBSTYLE=../xsl/website.xsl
 TABCHUNK=../xsl/chunk-tabular.xsl
@@ -11,44 +11,53 @@ USETIDY=1
 .PHONY : clean
 
 all:
-       make website
-       make TEXTONLY=1 website
+       $(MAKE) website
+       $(MAKE) TEXTONLY=1 website
 
 ifeq ($(TEXTONLY),0)
 STYLESHEET=$(TABSTYLE)
 STYLECHUNK=$(TABCHUNK)
 TEXTOPT=
-include .tabular
+include depends.tabular
 else
 STYLESHEET=$(WEBSTYLE)
 STYLECHUNK=$(WEBCHUNK)
 TEXTOPT=filename-prefix=txt
-include .textonly
+include depends.textonly
 endif
 
 autolayout.xml: layout.xml
-       xjparse $(filter-out autolayout.xml,$^)
-       $(PROC) $(PROCOPT) $< ../xsl/autolayout.xsl $@
-       make depends
+       $(XJPARSE) $(filter-out autolayout.xml,$^)
+       $(XSLT) $(XSLTOPT) $< ../xsl/autolayout.xsl $@
 
 chunk: autolayout.xml
-       $(PROC) $(PROCOPT) autolayout.xml $(STYLECHUNK) - output-root=$(DESTPATH)
+       $(XSLT) $(XSLTOPT) autolayout.xml $(STYLECHUNK) - output-root=$(DESTPATH)
 
 %.html: autolayout.xml 
-       xjparse $(filter-out autolayout.xml,$^)
-       $(PROC) $(PROCOPT) $(filter-out autolayout.xml,$^) $(STYLESHEET) $@ $(TEXTOPT) $(STYLEOPT)
+       $(XJPARSE) $(filter-out autolayout.xml,$^)
+       $(XSLT) $(XSLTOPT) $(filter-out autolayout.xml,$^) $(STYLESHEET) $@ $(TEXTOPT) $(STYLEOPT)
 ifeq ($(USETIDY),1)
-       -tidy -iq -latin1 -mn $@
+       -$(TIDY) -iq -latin1 -mn $@
 endif
 
 # RDDL gets its own rule because we never want to call tidy on it
 rddl.html: autolayout.xml
-       xjparse $(filter-out autolayout.xml,$^)
-       $(PROC) $(PROCOPT) $(filter-out autolayout.xml,$^) $(STYLESHEET) $@ $(TEXTOPT) $(STYLEOPT)
+       $(XJPARSE) $(filter-out autolayout.xml,$^)
+       $(XSLT) $(XSLTOPT) $(filter-out autolayout.xml,$^) $(STYLESHEET) $@ $(TEXTOPT) $(STYLEOPT)
 
-depends: autolayout.xml
-       xjparse $<
-       $(PROC) $(PROCOPT) $< ../xsl/makefile-dep.xsl .tabular
-       $(PROC) $(PROCOPT) $< ../xsl/makefile-dep.xsl .textonly prefix=txt
-       $(PROC) $(PROCOPT) $< ../xsl/website-targets.xsl website.database.xml
+depends.tabular: autolayout.xml
+       $(XJPARSE) $<
+       $(XSLT) $(XSLTOPT) $< ../xsl/makefile-dep.xsl $@
 
+depends.textonly: autolayout.xml
+       $(XJPARSE) $<
+       $(XSLT) $(XSLTOPT) $< ../xsl/makefile-dep.xsl $@ prefix=txt
+
+website.database.xml: autolayout.xml
+       $(XJPARSE) $<
+       $(XSLT) $(XSLTOPT) $< ../xsl/website-targets.xsl $@
+
+depends: depends.tabular depends.textonly website.database.xml
+
+realclean: clean
+       rm -f depends.tabular depends.textonly website.database.xml autolayout.xml