diff --git a/Makefile b/Makefile index af467a4..179d829 100755 --- a/Makefile +++ b/Makefile @@ -13,19 +13,53 @@ ################################################################################ # +# Required Environment Variables +# +# TEACHING_SHARED +# This variable specifies the path to the top level of the teaching +# shared directory hierarchy (e.g., /path/to/Teaching/Shared). +# +TEACHING_SHARED?=$(error The required environment variable TEACHING_SHARED has not been defined. It should point to the root level of the shared teaching directory (e.g., /path/to/Teaching/Shared)) + + +################################################################################ +# +# Set up paths to makefile include directories. +# +# GLOBAL_HANDBOOK_INCLUDE is the global include directory in the "Shared" +# hierarchy, and is defined relative to the root of that hierarchy. +# +GLOBAL_HANDBOOK_INCLUDE?=$(TEACHING_SHARED)/Authoring/Handbook/make-includes + + +################################################################################ +# +# Include local system-specific configuration. +# +include $(GLOBAL_HANDBOOK_INCLUDE)/local_configuration.make + + +################################################################################ +# # Include the XSLT processing functions. Note that we are assuming a fixed # path relative to the current directory! # -include ../Handbook/make-includes/xslt_functions.make +include $(GLOBAL_HANDBOOK_INCLUDE)/xslt_functions.make .PHONY: all clean -all: xml2html.xsl xml2latex.xsl oracle-docs.xsl +all: xml2html.xsl xml2xhtml.xsl xml2latex.xsl xml2xelatex.xsl oracle-docs.xsl -xml2html.xsl xml2latex.xsl: format-master.xml xml2xslt.xsl oracle-docs.xsl Makefile +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=%))) > $@ + + +# Since it seems impossible in XSLT to generate an xmlns attribute for the +# 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=%))) > $@ @@ -34,4 +68,4 @@ clean: - rm -f xml2html.xsl xml2latex.xsl oracle-docs.xsl + rm -f xml2html.xsl xml2xhtml.xsl xml2latex.xsl xml2xelatex.xsl oracle-docs.xsl