From: Michael Smith Date: Fri, 2 Feb 2007 00:07:40 +0000 (+0000) Subject: Just use relative path to html2xhtml.xsl file (instead of copying X-Git-Tag: release/1.79.1~6^2~2289 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e081cd2bd4f77dc9351b79dee8ce8fd6fc930a72;p=docbook-dsssl Just use relative path to html2xhtml.xsl file (instead of copying it over) and use xsltproc to do the tranform (it does it a lot faster). --- diff --git a/slides/xsl/xhtml/Makefile b/slides/xsl/xhtml/Makefile index 062d35755..93c5823a9 100644 --- a/slides/xsl/xhtml/Makefile +++ b/slides/xsl/xhtml/Makefile @@ -1,12 +1,14 @@ include ../../../cvstools/Makefile.incl -all: html2xhtml.xsl xsl-files +XSLTPROC=xsltproc +XSLTPROC_OPTS= -html2xhtml.xsl: - cp -p ../../../xsl/xhtml/html2xhtml.xsl . +HTML2XHTML=../../../xsl/xhtml/html2xhtml.xsl + +all: xsl-files remove-old: - for f in *.xsl; do if [ ! -f ../html/$$f -a "$$f" != "html2xhtml.xsl" ]; then rm $$f; fi; done + for f in ../html/*.xsl; do if [ -f `basename $$f` ]; then $(RM) `basename $$f`; fi; done add-new: for f in ../html/*.xsl; do if [ ! -f `basename $$f` ]; then \ @@ -17,8 +19,6 @@ add-new: # Oh, come on! It must be possible to do this in Make, but I can't figure out how (ndw) xsl-files: remove-old add-new - for f in *.xsl; do if [ ../html/$$f -nt $$f ]; then $(XSLT) ../html/$$f html2xhtml.xsl $$f; fi; done + for f in *.xsl; do if [ ../html/$$f -nt $$f ]; then $(XSLTPROC) $(XSLTPROC_OPTS) $(HTML2XHTML) ../html/$$f > $$f; fi; done clean: remove-old - rm -f html2xhtml.xsl -