-PROC=saxon
-PROCOPT=-q
+include ../../cvstools/Makefile.incl
+XSLTOPT=-q
TABSTYLE=../xsl/tabular.xsl
WEBSTYLE=../xsl/website.xsl
TABCHUNK=../xsl/chunk-tabular.xsl
.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