From 2cf7eab64a13cae81a20606969a4879d24f677df Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Mon, 19 May 2014 19:08:46 +0000 Subject: [PATCH] _SUBDIR is marked .MAKE - since it runs a sub-make. Targets thus marked are supposed to run even with -n. As such they should not do anything except run the sub-make. Use an intermediate target _* to associate with _SUBDIR and which depends on installincludes etc so that we get the correct behavior with -n. Reviewed by: marcel --- share/mk/bsd.subdir.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index 1500947a047..cc8e91999b4 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -104,8 +104,9 @@ ${__target}: _SUBDIR .for __target in files includes .for __stage in build install ${__stage}${__target}: +_${__stage}${__target}: ${__stage}${__target} .if make(${__stage}${__target}) -${__stage}${__target}: _SUBDIR +_${__stage}${__target}: _SUBDIR .endif .endfor ${__target}: .MAKE