diff options
Diffstat (limited to 'sandbox/mallard/html/Makefile')
-rw-r--r-- | sandbox/mallard/html/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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 '<cache xmlns="http://www.gnome.org/~shaunm/mallard">' >> $@.tmp + for file in $(wildcard ../spec/*.xml); do \ + xsltproc ../xslt/mal2cache.xsl $$file >> $@.tmp; \ + done + echo '</cache>' >> $@.tmp + mv $@.tmp $@ + +$(pages) : mallard.cache +$(pages) : $(wildcard ../xslt/*.xsl) +$(pages) : %.xhtml : ../spec/%.xml + xsltproc -o $@ ../xslt/mal2html.xsl $< |