From: Petter Reinholdtsen Date: Tue, 7 Aug 2012 09:42:18 +0000 (+0200) Subject: Derive name of .fo file from name of .pdf file. X-Git-Tag: edition-2015-10-10~1777 X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/commitdiff_plain/32e62462992ded8236e70a0512299044059ee3cb Derive name of .fo file from name of .pdf file. --- diff --git a/Makefile b/Makefile index b4015ce..2bb0f9d 100644 --- a/Makefile +++ b/Makefile @@ -68,10 +68,10 @@ html: freeculture.html freeculture.nb.html # This include images, but the index refs and footnote handling is # broken. xsltproc \ - --output myfile.fo \ + --output $(subst .pdf,.fo,$@) \ data/stylesheet-fo.xsl \ $< - fop -c data/fop-params.xconf -fo myfile.fo -pdf $@ + fop -c data/fop-params.xconf -fo $(subst .pdf,.fo,$@) -pdf $@ %.html: %.xml $(IMAGES) $(HTML_XSLT) xmlto \