From 7fe83fb929a52bc254d64be7eb01a66609c3b03e Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 23 Dec 2016 09:23:13 +1100 Subject: [PATCH] if gen fails remove the target [RT #43949] --- lib/export/dns/Makefile.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/export/dns/Makefile.in b/lib/export/dns/Makefile.in index f082bc5917..43b686da80 100644 --- a/lib/export/dns/Makefile.in +++ b/lib/export/dns/Makefile.in @@ -153,20 +153,21 @@ include: include/dns/enumtype.h include/dns/enumclass.h \ rdata.@O@: code.h include/dns/enumtype.h: gen - ./gen -s ${srcdir} -t > $@ + ./gen -s ${srcdir} -t > $@ || { rm -f $@; exit 1; } include/dns/enumclass.h: gen - ./gen -s ${srcdir} -c > $@ + ./gen -s ${srcdir} -c > $@ || { rm -f $@; exit 1; } include/dns/rdatastruct.h: gen \ ${srcdir}/rdata/rdatastructpre.h \ ${srcdir}/rdata/rdatastructsuf.h ./gen -s ${srcdir} -i \ -P ${srcdir}/rdata/rdatastructpre.h \ - -S ${srcdir}/rdata/rdatastructsuf.h > $@ + -S ${srcdir}/rdata/rdatastructsuf.h > $@ || \ + { rm -f $@; exit 1; } code.h: gen - ./gen -s ${srcdir} > code.h + ./gen -s ${srcdir} > code.h || { rm -f $@; exit 1; } gen: ${srcdir}/gen.c ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \