summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-10-23 11:34:16 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-10-23 11:37:07 +0200
commit3748f43f26c6ed4979f0ca4d0a50d0354dc10bb6 (patch)
tree0cf47f9100d0fbdd36d00d1ffacbc952bdc5c441 /Makefile
parent2f116f283f4a75e52007ab66ef419dbf6ba9bf8c (diff)
downloadbible-fetch-3748f43f26c6ed4979f0ca4d0a50d0354dc10bb6.tar.gz
bible-fetch-3748f43f26c6ed4979f0ca4d0a50d0354dc10bb6.tar.bz2
bible-fetch-3748f43f26c6ed4979f0ca4d0a50d0354dc10bb6.zip
Make scripts translation independent
Add menge download.
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}