]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Derive name of .fo file from name of .pdf file.
authorPetter Reinholdtsen <pere@hungry.com>
Tue, 7 Aug 2012 09:42:18 +0000 (11:42 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Tue, 7 Aug 2012 09:42:18 +0000 (11:42 +0200)
Makefile

index b4015ce18b1b63e71a86e886a46cb9aafe8093b3..2bb0f9dcbde4b74d8e3ef08ca22a48c04558dcc1 100644 (file)
--- 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 \