svn commit: r338191 - head/usr.sbin/amd/libamu

Alex Richardson arichardson at FreeBSD.org
Wed Aug 22 11:56:52 UTC 2018


Author: arichardson
Date: Wed Aug 22 11:56:51 2018
New Revision: 338191
URL: https://svnweb.freebsd.org/changeset/base/338191

Log:
  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)

Modified:
  head/usr.sbin/amd/libamu/Makefile

Modified: head/usr.sbin/amd/libamu/Makefile
==============================================================================
--- head/usr.sbin/amd/libamu/Makefile	Wed Aug 22 11:56:42 2018	(r338190)
+++ head/usr.sbin/amd/libamu/Makefile	Wed Aug 22 11:56:51 2018	(r338191)
@@ -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>


More information about the svn-src-all mailing list