- Refactored "format" stylesheet argument as "target-format".
1 parent 0d6469f commit 6b4961b9bffe7f7fc73462d9732121b2b379c456
nstanger authored on 8 Jul 2011
Showing 1 changed file
View
6
Makefile
################################################################################
#
# File: $Id$
#
# Makefile for building the INFO database courses XML formatting stylsheets.
# Makefile for building the INFO database courses XML formatting stylesheets.
# (We really need a better name :)
#
################################################################################
 
all: xml2html.xsl xml2xhtml.xsl xml2latex.xsl xml2xelatex.xsl oracle-docs.xsl
 
 
xml2html.xsl xml2latex.xsl xml2xelatex.xsl: format-master.xml xml2xslt.xsl oracle-docs.xsl Makefile
$(call xslt,$<,xml2xslt.xsl,$(call xslt_parameter,format,$(@:xml2%.xsl=%))) > $@
$(call xslt,$<,xml2xslt.xsl,$(call xslt_parameter,target-format,$(@:xml2%.xsl=%))) > $@
 
 
# Since it seems impossible in XSLT to generate an xmlns attribute for the
# <html> element, we have to add the attribute after the fact :(.
xml2xhtml.xsl: format-master.xml xml2xslt.xsl oracle-docs.xsl Makefile
$(call xslt,$<,xml2xslt.xsl,$(call xslt_parameter,format,$(@:xml2%.xsl=%))) > $@
$(call xslt,$<,xml2xslt.xsl,$(call xslt_parameter,target-format,$(@:xml2%.xsl=%))) > $@
 
 
oracle-docs.xsl: oracle-docs.perl
perl $< '.*' xslt > $@