mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
82f2974a69
commit
b37be1a5d4
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
_+_ ?= +
|
||||
|
|
|
|||
Loading…
Reference in a new issue