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:
parent
24c14ab87e
commit
266fbc83fe
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user