summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 16 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index b7e5d6b..b57090e 100644
--- a/Makefile
+++ b/Makefile
@@ -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}