diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-10-23 11:34:16 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-10-23 11:37:07 +0200 |
commit | 3748f43f26c6ed4979f0ca4d0a50d0354dc10bb6 (patch) | |
tree | 0cf47f9100d0fbdd36d00d1ffacbc952bdc5c441 /Makefile | |
parent | 2f116f283f4a75e52007ab66ef419dbf6ba9bf8c (diff) | |
download | bible-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-- | 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} |