]> granicus.if.org Git - libexpat/commitdiff
doc/Makefile: Do not leave nullbyte XMLWF.1 on error
authorSebastian Pipping <sebastian@pipping.org>
Sun, 5 Jun 2016 13:14:14 +0000 (15:14 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 5 Jun 2016 13:14:14 +0000 (15:14 +0200)
expat/doc/Makefile

index 39897486a0d041cdb6839b9119692ff2bdb249a8..994b8b1d4d8110f039006a799c301fad69ce2516 100644 (file)
@@ -12,7 +12,7 @@ xmlwf.1: XMLWF.1
 
 XMLWF.1: xmlwf.xml
        which $(DOCBOOK_TO_MAN)
-       $(DOCBOOK_TO_MAN) xmlwf.xml > $@
+       $(DOCBOOK_TO_MAN) xmlwf.xml > $@ || { rm $@ ; exit 1; }
 
 xmlwf.xml: xmlwf.sgml
        which $(SGML_TO_XML)