svn commit: r300802 - head/share/mk

Bryan Drewery bdrewery at FreeBSD.org
Thu May 26 23:20:26 UTC 2016


Author: bdrewery
Date: Thu May 26 23:20:24 2016
New Revision: 300802
URL: https://svnweb.freebsd.org/changeset/base/300802

Log:
  WITH_META_MODE: Only expect a .meta file for the main target.
  
  Since multiple files are generated from one build command, only
  the first to run will actually generate a .meta file.  This fix
  prevents 'required but missing' rebuilds on each target.
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/share/mk/bsd.crunchgen.mk

Modified: head/share/mk/bsd.crunchgen.mk
==============================================================================
--- head/share/mk/bsd.crunchgen.mk	Thu May 26 23:20:20 2016	(r300801)
+++ head/share/mk/bsd.crunchgen.mk	Thu May 26 23:20:24 2016	(r300802)
@@ -106,7 +106,8 @@ CRUNCHGEN?= crunchgen
 CRUNCHENV?= MK_TESTS=no \
 	    _RECURSING_CRUNCH=1
 .ORDER: ${OUTPUTS} objs
-${OUTPUTS}: ${CONF} .META
+${OUTPUTS:[1]}: .META
+${OUTPUTS}: ${CONF}
 	MAKE=${MAKE} ${CRUNCHENV} MAKEOBJDIRPREFIX=${CRUNCHOBJS} \
 	    ${CRUNCHGEN} -fq -m ${OUTMK} -c ${OUTC} ${CONF}
 


More information about the svn-src-head mailing list