blob: 53fae81c0101a2d4231965e8cfd75c804b2f9663 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 $<
|