From 08b7b6846f65311ac5b93303f558c95b7eb90839 Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Fri, 2 Feb 2007 19:14:53 +0000 Subject: - Adding Makefile to build html versions * html/Makefile: - Adding Makefile to build html versions svn path=/trunk/; revision=879 --- sandbox/mallard/ChangeLog | 5 +++++ sandbox/mallard/html/Makefile | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 sandbox/mallard/html/Makefile diff --git a/sandbox/mallard/ChangeLog b/sandbox/mallard/ChangeLog index cce27a1..daf170c 100644 --- a/sandbox/mallard/ChangeLog +++ b/sandbox/mallard/ChangeLog @@ -1,3 +1,8 @@ +2007-02-02 Shaun McCance + + * html/Makefile: + - Adding Makefile to build html versions + 2007-02-02 Shaun McCance * rng/*: diff --git a/sandbox/mallard/html/Makefile b/sandbox/mallard/html/Makefile new file mode 100644 index 0000000..53fae81 --- /dev/null +++ b/sandbox/mallard/html/Makefile @@ -0,0 +1,16 @@ +pages=$(patsubst %.xml,%.xhtml, $(notdir $(wildcard ../spec/*.xml))) + +all: $(pages) mallard.cache + +mallard.cache : $(wildcard ../xslt/*.xsl) + echo '' >> $@.tmp + for file in $(wildcard ../spec/*.xml); do \ + xsltproc ../xslt/mal2cache.xsl $$file >> $@.tmp; \ + done + echo '' >> $@.tmp + mv $@.tmp $@ + +$(pages) : mallard.cache +$(pages) : $(wildcard ../xslt/*.xsl) +$(pages) : %.xhtml : ../spec/%.xml + xsltproc -o $@ ../xslt/mal2html.xsl $< -- cgit v1.2.1