Home | History | Annotate | Download | only in unit-tests

Lines Matching defs:CMDLINE

136 # the argument of an '.if' directive is evaluated in cmdline scope.  Putting
137 # these together makes it possible to undefine variables from the cmdline
139 .MAKEFLAGS: CMDLINE=cmdline
140 .if ${:U${CMDLINE}${:U:@CMDLINE@@}} != "cmdline"
143 # Now the cmdline variable got undefined.
144 .if ${CMDLINE} != "cmdline"
147 # At this point, it still looks as if the cmdline variable were defined,
148 # since the value of CMDLINE is still "cmdline". That impression is only
149 # superficial though, the cmdline variable is actually deleted. To
152 CMDLINE= global
153 .if ${CMDLINE} != "global"
157 .undef CMDLINE
158 .if ${CMDLINE} != "cmdline"
161 # What actually happened is that when CMDLINE was set by the '.MAKEFLAGS'
162 # target in the cmdline scope, that same variable was exported to the
164 .unexport CMDLINE
165 .if ${CMDLINE} != "cmdline"
170 CMDLINE= global
171 .unexport CMDLINE
172 .undef CMDLINE
173 .if ${CMDLINE} != "cmdline"
178 CMDLINE= global
179 .export CMDLINE
180 .unexport CMDLINE
181 .undef CMDLINE
182 .if ${CMDLINE:Uundefined} != "undefined"
185 # Finally the variable 'CMDLINE' from the cmdline scope is gone, and all its
189 .MAKEFLAGS: CMDLINE=cmdline # have a cmdline + environment variable
190 .if ${:U:@CMDLINE@@}} # undefine cmdline, keep environment
192 CMDLINE= global # needed for deleting the environment
193 .export CMDLINE # needed for deleting the environment
194 .unexport CMDLINE # delete the environment
195 .undef CMDLINE # delete the global helper variable
196 .if ${CMDLINE:Uundefined} != "undefined"
197 . error # 'CMDLINE' is gone now from all scopes