diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -1,18 +1,25 @@ -CHAPTERS=$(wildcard chapters/*/*.html) -CHAPTERS_XML=$(CHAPTERS:.html=.xml) +ELBERFELDER_CHAPTERS=$(wildcard elberfelder/chapters/*/*.html) +ELBERFELDER_CHAPTERS_XML=$(ELBERFELDER_CHAPTERS:.html=.xml) -all: book-list elberfelder2006.zip +MENGE_CHAPTERS=$(wildcard menge/chapters/*/*.html) +MENGE_CHAPTERS_XML=$(MENGE_CHAPTERS:.html=.xml) -chapters/%.xml: chapters/%.html convert.sed convert.xsl - ./convert.sed $< | xsltproc --encoding utf-8 --html convert.xsl - > $@ +all: elberfelder2006.zip menge.zip -elberfelder2006.xml: $(CHAPTERS_XML) - ./concat.sh > $@ +%.xml: %.html convert.sed convert.xsl + ./convert.sed "$<" | xsltproc --encoding utf-8 --html convert.xsl - > "$@" + +elberfelder2006.xml: $(ELBERFELDER_CHAPTERS_XML) + ./concat.sh elberfelder "Elberfelder 2006" > $@ xmllint --noout --schema zef2005.xsd $@ +menge.xml: $(MENGE_CHAPTERS_XML) + ./concat.sh menge "Menge-Bibel2" > $@ + xmllint --noout --schema zef2005.xsd $@ || (mv $@ $@.fail; exit 1) + %.zip: %.xml zip $@ $< clean: - rm -f $(CHAPTERS_XML) - rm -f elberfelder2006.{xml,zip} + rm -f $(ELBERFELDER_CHAPTERS_XML) $(MENGE_CHAPTERS_XML) + rm -f elberfelder2006.{xml,zip} menge.{xml,zip} |