diff --git a/make-includes/build_document_rules.make b/make-includes/build_document_rules.make index efc2275..c5e3ef3 100755 --- a/make-includes/build_document_rules.make +++ b/make-includes/build_document_rules.make @@ -125,10 +125,18 @@ # -# List of XSL stylesheets. If any of these change, we need to rebuild everything. +# List of XSL stylesheets. If any of these change, we need to rebuild +# everything. +# +# We can't use the resolver approach under Windows because of the DOS +# pathnames. The style sheets come out of the resolver with paths like +# C:\bar\foo\..., and make interprets the colon as an extra dependency +# delimiter (tested and behaviour verified). Of course, this works fine on +# any platform with sensible path standards. Quoting the value doesn't +# help, unfortunately. Bugger :( # #XSLT_STYLESHEETS:=$(shell java org.apache.xml.resolver.apps.resolver -u file:///xml2html.xsl uri | ( grep 'Result: file:' || echo '::xml2html.xsl' ) | cut -d':' -f3-) $(shell java org.apache.xml.resolver.apps.resolver -u file:///xml2latex.xsl uri | ( grep 'Result: file:' || echo '::xml2latex.xsl' ) | cut -d':' -f3-) -XSLT_STYLESHEETS=$(TEACHING_SHARED)/Authoring/XML/xml2html.xsl $(TEACHING_SHARED)/Authoring/XML/xml2latex.xsl +XSLT_STYLESHEETS:=$(TEACHING_SHARED)/Authoring/XML/xml2html.xsl $(TEACHING_SHARED)/Authoring/XML/xml2latex.xsl ################################################################################ @@ -458,6 +466,7 @@ @echo "PRINT_ANSWERS_PDF_2UP = [$(PRINT_ANSWERS_PDF_2UP)]" @echo "DERIVED_WEB_FILES = [$(DERIVED_WEB_FILES)]" @echo "DERIVED_PRINT_FILES = [$(DERIVED_PRINT_FILES)]" + @echo "XSLT_STYLESHEETS = [$(XSLT_STYLESHEETS)]" @echo "CONTENT_SRC = [$(CONTENT_SRC)]" @echo "INSTALL_DIRECTORY = [$(INSTALL_DIRECTORY)]" @echo "QUESTION_INSTALL_FILES = [$(QUESTION_INSTALL_FILES)]"