diff --git a/Makefile b/Makefile index df7b060..657df8f 100755 --- a/Makefile +++ b/Makefile @@ -1,10 +1,27 @@ # $Id$ + all: xml2html.xsl xml2latex.xsl xml2html.xsl: format-master.xml xml2xslt.xsl Makefile - Xalan -p format "'html'" format-master.xml xml2xslt.xsl > xml2html.xsl +ifeq ($(XSLT),xalan-c) + Xalan -p format "'html'" $< xml2xslt.xsl > $@ +else +ifeq ($(XSLT),xalan-j) + xalan -param format "'html'" $< xml2xslt.xsl > $@ +else + saxon $< xml2xslt.xsl format=html > $@ +endif +endif xml2latex.xsl: format-master.xml xml2xslt.xsl Makefile - Xalan -p format "'latex'" format-master.xml xml2xslt.xsl > xml2latex.xsl +ifeq ($(XSLT),xalan-c) + Xalan -p format "'latex'" $< xml2xslt.xsl > $@ +else +ifeq ($(XSLT),xalan-j) + xalan -param format "'latex'" $< xml2xslt.xsl > $@ +else + saxon $< xml2xslt.xsl format=latex > $@ +endif +endif