我找到了 ${_+_}
在 the FreeBSD Makefile .${_+_}
是什么意思在 BSD 生成文件中?
最佳答案
${_+_}
指一个变量。它在 share/mk/sys.mk 中定义由 make 过程读取。所以用户 Zack 在他的评论中指出了正确的方向;此变量扩展为 +
在某些情况下签名,取决于给出的标志:
.if !empty(.MAKEFLAGS:M-n) && ${.MAKEFLAGS:M-n} == "-n"
_+_ ?=
.else
_+_ ?= +
.endif
对此的理由可以在 this commit 的评论中找到。和 this one ,其中引入了符号:
Make make recurse into sub-directories and sub-makes when given
two -n flags. If only one -n flag is given the old behaviour
is retained (POLA).
关于unix - ${_+_} 在 BSD Makefile 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15747472/