FreeBSD make (aka fmake) doesn't grok .MAKE.LEVEL. Failsafe and assume

that it is OK to set MK_xxx flags.
This commit is contained in:
Warner Losh 2014-04-02 16:33:02 +00:00
parent 375dbc83a2
commit bcca5958db

View File

@ -432,7 +432,7 @@ __DEFAULT_YES_OPTIONS+=GCC GNUCXX
.error WITH_${var} and WITHOUT_${var} can't both be set.
.endif
.if defined(MK_${var})
.if ${.MAKE.LEVEL} == 0
.if defined(.MAKE.LEVEL) && ${.MAKE.LEVEL} == 0
.error MK_${var} can't be set by a user.
.endif
.else