mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
if gen fails remove the file [RT #43949]
This commit is contained in:
@@ -174,20 +174,21 @@ include: include/dns/enumtype.h include/dns/enumclass.h \
|
|||||||
rdata.@O@: code.h
|
rdata.@O@: code.h
|
||||||
|
|
||||||
include/dns/enumtype.h: gen
|
include/dns/enumtype.h: gen
|
||||||
./gen -s ${srcdir} -t > $@
|
./gen -s ${srcdir} -t > $@ || { rm -f $@ ; exit 1; }
|
||||||
|
|
||||||
include/dns/enumclass.h: gen
|
include/dns/enumclass.h: gen
|
||||||
./gen -s ${srcdir} -c > $@
|
./gen -s ${srcdir} -c > $@ || { rm -f $@ ; exit 1; }
|
||||||
|
|
||||||
include/dns/rdatastruct.h: gen \
|
include/dns/rdatastruct.h: gen \
|
||||||
${srcdir}/rdata/rdatastructpre.h \
|
${srcdir}/rdata/rdatastructpre.h \
|
||||||
${srcdir}/rdata/rdatastructsuf.h
|
${srcdir}/rdata/rdatastructsuf.h
|
||||||
./gen -s ${srcdir} -i \
|
./gen -s ${srcdir} -i \
|
||||||
-P ${srcdir}/rdata/rdatastructpre.h \
|
-P ${srcdir}/rdata/rdatastructpre.h \
|
||||||
-S ${srcdir}/rdata/rdatastructsuf.h > $@
|
-S ${srcdir}/rdata/rdatastructsuf.h > $@ || \
|
||||||
|
{ rm -f $@ ; exit 1; }
|
||||||
|
|
||||||
code.h: gen
|
code.h: gen
|
||||||
./gen -s ${srcdir} > code.h
|
./gen -s ${srcdir} > code.h || { rm -f $@ ; exit 1; }
|
||||||
|
|
||||||
gen: gen.c
|
gen: gen.c
|
||||||
${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
|
${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
|
||||||
|
Reference in New Issue
Block a user