From a65a0e56cf37abf4d66c24a4e57fe7e923fa5941 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Wed, 24 Feb 2016 17:18:28 +0000 Subject: [PATCH] PROGS: Only recurse on called targets like done for SUBDIR in r291635. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division --- share/mk/bsd.progs.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/mk/bsd.progs.mk b/share/mk/bsd.progs.mk index cba0b5936a17..2d10af0ec3c0 100644 --- a/share/mk/bsd.progs.mk +++ b/share/mk/bsd.progs.mk @@ -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)