Newer
Older
XML / Makefile
# $Id$


.PHONY: clean

all: xml2html.xsl xml2latex.xsl oracle-docs.xsl

clean:
	rm -f xml2html.xsl xml2latex.xsl oracle-docs.xsl

xml2html.xsl: format-master.xml xml2xslt.xsl oracle-docs.xsl Makefile
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 oracle-docs.xsl Makefile
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

oracle-docs.xsl: oracle-docs.perl
	perl $< '.*' xslt > $@