+rapport-fop.fo: rapport.xml
+ xsltproc \
+ --output $(subst .pdf,.fo,$@).new \
+ data/stylesheet-fo.xsl \
+ $<
+ xmllint --format $@.new > $@
+ $(RM) $@.new
+
+rapport-fop.pdf: rapport-fop.fo
+ fop -c data/fop-params.xconf -fo $(subst .pdf,.fo,$@) -pdf $@ ; \
+