Date: Wed, 22 Aug 2018 11:56:51 +0000 (UTC) From: Alex Richardson <arichardson@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338191 - head/usr.sbin/amd/libamu Message-ID: <201808221156.w7MBupjf025008@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808221156.w7MBupjf025008>