Need to test .MAKE.LEVEL everywhere before using it for bootstrapping

issues between fmake and bmake.
This commit is contained in:
Warner Losh 2014-04-07 21:16:51 +00:00
parent aa5cdf0136
commit 35074a0a2b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264239

View File

@ -440,7 +440,7 @@ MK_${var}:= yes
.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
@ -601,7 +601,7 @@ MK_${vv:H}:= ${MK_${vv:T}}
.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