From e081cd2bd4f77dc9351b79dee8ce8fd6fc930a72 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 2 Feb 2007 00:07:40 +0000 Subject: [PATCH] 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). --- slides/xsl/xhtml/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 - -- 2.40.0