c3d2-web/xslfo/datenspuren/schedule/Makefile

34 lines
741 B
Makefile
Raw Normal View History

EXPORT_URL=http://www.datenspuren.de/fahrplan/
FOP=~/programs/fop/fop
XSLT=xsltproc
XSLT_FLAGS=--novalid
XEP=~/Java/XEP/xep
KEEP=day_1.de.html day_2.de.html
FOP_FILES=day_1.pdf day_2.pdf
XEP_FILES=day_1-xep.pdf day_2-xep.pdf
all: $(FOP_FILES) $(XEP_FILES) $(KEEP)
day_%.de.html:
wget -O $@ $(EXPORT_URL)/$@
schedule.de.xml:
wget -O $@ $(EXPORT_URL)/$@
day_%.xml: day_%.de.html day_schedule.xsl schedule.de.xml
$(XSLT) $(XSLT_FLAGS) day_schedule.xsl $<|ruby schedule_add_spans.rb > $@
day_%.fo: day_%.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