summaryrefslogtreecommitdiff
path: root/Makefile
blob: 00402761f6ae0956378a3b01bcd21a93fa0af509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CHAPTERS=$(shell ./list-chapters.sh)
CHAPTERS_XML=$(CHAPTERS:=.xml)

all: book-list elberfelder2006.zip

chapters/%.xml: chapters/% convert.sed convert.xsl
	./convert.sed $< | xsltproc --encoding utf-8 --html convert.xsl - > $@

elberfelder2006.xml: $(CHAPTERS_XML)
	./concat.sh > $@
	xmllint --noout --schema zef2005.xsd $@

%.zip: %.xml
	zip $@ $<

clean:
	rm -f $(CHAPTERS_XML)
	rm -f elberfelder2006.{xml,zip}