PROGS: Only recurse on called targets like done for SUBDIR in r291635.

MFC after:	2 weeks
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-02-24 17:18:28 +00:00
parent e1ea782729
commit a65a0e56cf

View File

@ -134,6 +134,8 @@ $p.$t: .PHONY .MAKE
# Depend main pseudo targets on all PROG.pseudo targets too.
.for t in ${PROGS_TARGETS:O:u}
.if make(${t})
$t: ${PROGS:%=%.$t}
.endif
.endfor
.endif # !empty(PROGS) && !defined(_RECURSING_PROGS) && !defined(PROG)