svn commit: r266450 - head/share/mk
Simon J. Gerraty
sjg at FreeBSD.org
Mon May 19 19:08:47 UTC 2014
Author: sjg
Date: Mon May 19 19:08:46 2014
New Revision: 266450
URL: http://svnweb.freebsd.org/changeset/base/266450
Log:
_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
Modified:
head/share/mk/bsd.subdir.mk
Modified: head/share/mk/bsd.subdir.mk
==============================================================================
--- head/share/mk/bsd.subdir.mk Mon May 19 18:07:37 2014 (r266449)
+++ head/share/mk/bsd.subdir.mk Mon May 19 19:08:46 2014 (r266450)
@@ -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
More information about the svn-src-head
mailing list