Use unifdef -x1 instead of ignoring the shell exit code

This way the target fails if unifdef doesn't exist or doesn't modify the
file instead of just generating an empty .c file.
I found this while building without inherited $PATH (D16815)

Approved By:	jhb (mentor)
This commit is contained in:
arichardson 2018-08-22 11:56:51 +00:00
parent 8f8ffd0de4
commit adcb8fa32c

View File

@ -33,6 +33,6 @@ nfs_prot_x.c: ${NFS_PROT_X}
XDRDEFS!= grep 'ifndef.*HAVE_XDR' ${SRCTOP}/contrib/amd/libamu/xdr_func.c | awk '{print "-D"$$2}'
xdr_func_%undef.c: xdr_func.c
-unifdef ${XDRDEFS} < ${.ALLSRC} > ${.TARGET}
unifdef -x1 ${XDRDEFS} -o ${.TARGET} ${.ALLSRC}
.include <bsd.lib.mk>