1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

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:
Alex Richardson 2018-08-22 11:56:51 +00:00
parent 24c14ab87e
commit 266fbc83fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338191

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>