From 35b602c36a98ac63366ab16ec6be6f76152e9022 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 30 Jul 2012 17:34:58 +0200 Subject: [PATCH] Make sure required images are built when needed. --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 9cf0fdc..df11c12 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,8 @@ DBLATEX = dblatex \ DBTOEPUB = dbtoepub +IMAGES = images/cc.png + all: lint lint.nb html epub pdf freeculture.nb.po: freeculture.pot @@ -31,19 +33,19 @@ pdf: freeculture.nb.pdf freeculture.pdf epub: freeculture.nb.epub html: freeculture.html freeculture.nb.html -%.pdf: %.xml - $(DBLATEX) $^ --param=lingua=nb +%.pdf: %.xml $(IMAGES) + $(DBLATEX) $< --param=lingua=nb # Alternative processing path to dblatex is to use xmlto using fop to # create PDF like this. The PDF output (visual design) is better, but # the PDF index and footnote handling is worse and images are missing. # xmlto --noautosize -m xmlto-pdf.xsl --with-fop pdf $^ -%.html: %.xml - xmlto html-nochunks $^ +%.html: %.xml $(IMAGES) + xmlto html-nochunks $< -%.epub: %.xml - $(DBTOEPUB) $^ +%.epub: %.xml, $(IMAGES) + $(DBTOEPUB) $^ $< freeculture.xml: GET $(url) | gunzip > freeculture.xml -- 2.51.0