svn commit: r251748 - head/share/mk
Simon J. Gerraty
sjg at FreeBSD.org
Fri Jun 14 16:24:08 UTC 2013
Author: sjg
Date: Fri Jun 14 16:24:07 2013
New Revision: 251748
URL: http://svnweb.freebsd.org/changeset/base/251748
Log:
We cannot remove the _+_ trick, until old make is completely deprecated.
But we don't want to set it to + for bmake since it breaks make -N
which is used to supress the normal handling of targets marked with .MAKE
(which seems broken in fmake and might be why _+_ was introduced).
Add some comments to explain what's gong on.
Reviewed by: obrien
Modified:
head/share/mk/sys.mk
Modified: head/share/mk/sys.mk
==============================================================================
--- head/share/mk/sys.mk Fri Jun 14 15:58:24 2013 (r251747)
+++ head/share/mk/sys.mk Fri Jun 14 16:24:07 2013 (r251748)
@@ -95,7 +95,13 @@ ECHODIR ?= true
.endif
.endif
-.if !empty(.MAKEFLAGS:M-n) && ${.MAKEFLAGS:M-n} == "-n"
+.if defined(.PARSEDIR)
+# _+_ appears to be a workaround for the special src .MAKE not working.
+# setting it to + interferes with -N
+_+_ ?=
+.elif !empty(.MAKEFLAGS:M-n) && ${.MAKEFLAGS:M-n} == "-n"
+# the check above matches only a single -n, so -n -n will result
+# in _+_ = +
_+_ ?=
.else
_+_ ?= +
More information about the svn-src-all
mailing list