From 09175591851b67beb6714346d6ab4f4d9f9429fc Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 2 Jul 2012 16:01:24 +0200 Subject: Replace gen-bible.sh by a Makefile That is more flexible, since it allows easy invokation of recreation of a single chapter. And its twice as fast as gen-bible.sh when using parallel build. :) --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fcdfe3f --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +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 > $@ + +%.zip: %.xml + zip $@ $< + +clean: + rm -f $(CHAPTERS_XML) + rm -f elberfelder2006.{xml,zip} -- cgit