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
This commit is contained in:
Simon J. Gerraty 2013-06-14 16:24:07 +00:00
parent 82f2974a69
commit b37be1a5d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251748

View File

@ -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
_+_ ?= +