blob: 2bfa10262c8218325400c163b40f86ce6f109969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
xsltproc=xsltproc
#pages=$(shell xmllint --xpath "//*/@filename" main.xml | sed 's/filename=//g'| xargs echo)
pages=$(shell sed -n 's/^.*filename="\([^"]*\)".*/\1/p' main.xml)
pages_html=$(pages:%.xml=%.xhtml)
.PHONY: all
all: $(pages_html)
%.xhtml: %.xml %.xsl xsl/*
$(xsltproc) $< > $@
%.xhtml: %.xml xsl/*
$(xsltproc) $< > $@
clean:
rm -f $(pages_html)
|