]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Added some missing target dependencies to Makefile
authorGunnar Wolf <gwolf@gwolf.org>
Mon, 15 Oct 2018 15:52:47 +0000 (10:52 -0500)
committerGunnar Wolf <gwolf@gwolf.org>
Mon, 15 Oct 2018 15:52:47 +0000 (10:52 -0500)
Makefile

index d500216cfdd36a37ea5a77e2029aa2a42094f9ac..7d1421d78cfdeed338b2fbdc532e9a2c7448cafe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,8 @@ clean:
                rm -f $(SOURCE).$$LANG.$$EXT ;\
            done; \
         done
+       rm -f xsl-fo-$(SOURCE).*.pdf
+       rm -f xsl-fo-$(SOURCE).*.fo
        $(RM) *~
 
 $(SOURCE).md: $(SOURCE).odt fixup.rb
@@ -103,7 +105,7 @@ pdf: $(SOURCE).pdf
            $(MAKE) $(SOURCE).$$LANG.pdf ; \
        done
 DBLATEX_OPTS = -T simple -t pdf -b xetex -p extra/pdf.xsl
-%.pdf: %.xml
+%.pdf: %.xml extra/pdf.xsl
        dblatex $(DBLATEX_OPTS) $^
 
 epub: $(SOURCE).epub
@@ -132,7 +134,7 @@ check-urls:
        done; exit $$retval
 
 # Experimental build rule to test Docbook XSL + FOP processor 
-xsl-fo-%.pdf: %.xml
+xsl-fo-%.pdf: %.xml extra/stylesheet-fo.xsl
        xsltproc --output $(subst .pdf,.fo,$@) \
          extra/stylesheet-fo.xsl $^; \
        fop -fo $(subst .pdf,.fo,$@) -pdf $@