GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
1
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
XML
Browse code
- Corrected missing dependency on calendar_dates.xsl.
master
1 parent
446f91c
commit
3f69359085cc346ce44cffdce58b8b029df4ce62
nstanger
authored
on 13 Jun 2012
Patch
Showing
1 changed file
Makefile
Ignore Space
Show notes
View
Makefile
################################################################################ # # File: $Id$ # # Makefile for building the INFO database courses XML formatting stylesheets. # (We really need a better name :) # ################################################################################ SHELL=/bin/sh ################################################################################ # # 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 $(GLOBAL_HANDBOOK_INCLUDE)/xslt_functions.make .PHONY: all clean MODULES:=$(shell $(FIND) modules -type f -name "*.xml" ) all: xml2html.xsl xml2xhtml.xsl xml2latex.xsl xml2xelatex.xsl oracle-docs.xsl calendar_dates.xsl xml2html.xsl xml2latex.xsl xml2xelatex.xsl: format-master.xml $(MODULES) xml2xslt.xsl oracle-docs.xsl calendar_dates.xsl Makefile $(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 $(MODULES) xml2xslt.xsl oracle-docs.xsl Makefile $(call xslt,$<,xml2xslt.xsl,$(call xslt_parameter,target-format,$(@:xml2%.xsl=%))) > $@ calendar_dates.xsl: generate_calendar_dates.php php $< > $@ oracle-docs.xsl: oracle-docs.perl perl $< '.*' xslt > $@ clean: rm -f xml2html.xsl xml2xhtml.xsl xml2latex.xsl xml2xelatex.xsl oracle-docs.xsl
################################################################################ # # File: $Id$ # # Makefile for building the INFO database courses XML formatting stylesheets. # (We really need a better name :) # ################################################################################ SHELL=/bin/sh ################################################################################ # # 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 $(GLOBAL_HANDBOOK_INCLUDE)/xslt_functions.make .PHONY: all clean MODULES:=$(shell $(FIND) modules -type f -name "*.xml" ) all: xml2html.xsl xml2xhtml.xsl xml2latex.xsl xml2xelatex.xsl oracle-docs.xsl calendar_dates.xsl xml2html.xsl xml2latex.xsl xml2xelatex.xsl: format-master.xml $(MODULES) xml2xslt.xsl oracle-docs.xsl Makefile $(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 $(MODULES) xml2xslt.xsl oracle-docs.xsl Makefile $(call xslt,$<,xml2xslt.xsl,$(call xslt_parameter,target-format,$(@:xml2%.xsl=%))) > $@ calendar_dates.xsl: generate_calendar_dates.php php $< > $@ oracle-docs.xsl: oracle-docs.perl perl $< '.*' xslt > $@ clean: rm -f xml2html.xsl xml2xhtml.xsl xml2latex.xsl xml2xelatex.xsl oracle-docs.xsl
Show line notes below