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
This commit is contained in:
Bryan Drewery 2016-05-26 23:20:24 +00:00
parent 409bf2b097
commit a13e2ac519

View File

@ -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}