From: Mark Andrews Date: Thu, 22 Dec 2016 22:19:31 +0000 (+1100) Subject: if gen fails remove the file [RT #43949] X-Git-Tag: v9.12.0a1~599 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=e17d2f98be7d0b562a29f8ab16331eadec1f28c2;p=thirdparty%2Fbind9.git if gen fails remove the file [RT #43949] --- diff --git a/lib/dns/Makefile.in b/lib/dns/Makefile.in index 67ae8c44c5b..a22b7213584 100644 --- a/lib/dns/Makefile.in +++ b/lib/dns/Makefile.in @@ -174,20 +174,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: gen.c ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \