39 lines
958 B
Makefile
39 lines
958 B
Makefile
EXPORT_DIR=../../../content/static/datenspuren/fahrplan
|
|
FOP=~/programs/fop/fop
|
|
FOP_FLAGS=-d
|
|
XSLT=xsltproc
|
|
XSLT_FLAGS=--novalid
|
|
XEP=~/Java/XEP/xep
|
|
|
|
|
|
FOP_FILES=day_2008-06-07.pdf day_2008-06-08.pdf
|
|
XEP_FILES=day_1-xep.pdf day_2-xep.pdf
|
|
|
|
all: $(FOP_FILES) #$(XEP_FILES) $(KEEP)
|
|
|
|
day_%.de.html: $(EXPORT_DIR)/day_%.de.html
|
|
cp $< $@
|
|
|
|
schedule.de.xml: $(EXPORT_DIR)/schedule.de.xml
|
|
cp $< $@
|
|
|
|
day_%.xml: day_%.de.html day_schedule.xsl schedule.de.xml
|
|
$(XSLT) $(XSLT_FLAGS) day_schedule.xsl $<|ruby schedule_add_spans.rb > $@
|
|
|
|
day_%_hyphenated.xml: day_%.xml
|
|
sed -e 's/Festplattenverschlüsselung/Festplatten-verschlüsselung/' \
|
|
-e 's/datenschutzfreundlicher/datenschutz-freundlicher/' \
|
|
< $< > $@
|
|
|
|
day_%.fo: day_%_hyphenated.xml schedule-fo.xsl
|
|
$(XSLT) $(XSLT_FLAGS) -o $@ schedule-fo.xsl $<
|
|
|
|
day_%-xep.pdf: day_%.fo
|
|
$(XEP) -fo $< -pdf $@
|
|
|
|
day_%.pdf: day_%.fo
|
|
$(FOP) $(FOP_FLAGS) -fo $< -pdf $@
|
|
|
|
clean:
|
|
rm -f day_*.{de.html,xml,fo,pdf} schedule.de.xml
|