Check dblatex actually creates the files we tell it to
authorIan Lynagh <igloo@earth.li>
Sun, 30 May 2010 17:10:43 +0000 (17:10 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 30 May 2010 17:10:43 +0000 (17:10 +0000)
If it fails, it still exits successfully.

rules/docbook.mk

index cec0f2c..ccc0fa4 100644 (file)
@@ -56,6 +56,7 @@ ps_$1 : $1/$2.ps
 ifneq "$$(BINDIST)" "YES"
 $1/$2.ps: $$($1_DOCBOOK_SOURCES)
        "$$(DBLATEX)" $$(DBLATEX_OPTS) $1/$2.xml --ps -o $$@
+       [ -f $$@ ]
 endif
 
 ifeq "$$(BUILD_DOCBOOK_PDF)" "YES"
@@ -69,6 +70,7 @@ pdf_$1 : $1/$2.pdf
 ifneq "$$(BINDIST)" "YES"
 $1/$2.pdf: $$($1_DOCBOOK_SOURCES)
        "$$(DBLATEX)" $$(DBLATEX_OPTS) $1/$2.xml --pdf -o $$@
+       [ -f $$@ ]
 endif
 
 endef