Lines Matching full:scope
1 # $NetBSD: var-scope-local.mk,v 1.11 2024/03/05 23:07:58 rillig Exp $
79 # Conditions from .if directives are evaluated in the scope of the command
81 # scope and from the environment are resolved, in this precedence order (but
164 # expect: : Making var-scope-local.c out of nothing.
165 var-scope-local.c:
170 # expect: : Making var-scope-local.o from var-scope-local.c.
171 # expect: : Making basename "var-scope-local.o" in "." from "var-scope-local.c" in ".".
180 all: var-scope-local.o
182 # 'all', not in the global scope. This can be seen with the -dv
189 all: var-scope-local-assign.o
190 all: var-scope-local-append.o
191 all: var-scope-local-append-global.o
192 all: var-scope-local-default.o
193 all: var-scope-local-subst.o
194 all: var-scope-local-shell.o
196 var-scope-local-assign.o \
197 var-scope-local-append.o \
198 var-scope-local-append-global.o \
199 var-scope-local-default.o \
200 var-scope-local-subst.o \
201 var-scope-local-shell.o:
217 # expect: Making var-scope-local-assign.o with make 'local' and env 'local'.
218 var-scope-local-assign.o: VAR= local
221 # look up the variable in the target's own scope.
222 var-scope-local-append.o: VAR+= local
223 # Once a variable is defined in the target-local scope, appending using '+='
227 # expect: Making var-scope-local-append.o with make 'local to var-scope-local-append.o' and env 'local to var-scope-local-append.o'.
228 var-scope-local-append.o: VAR += to ${.TARGET}
237 # expect: Making var-scope-local-append-global.o with make 'global+local' and env 'global+local'.
238 var-scope-local-append-global.o: VAR= ${VAR}+local
240 var-scope-local-default.o: VAR ?= first
241 var-scope-local-default.o: VAR ?= second
245 # expect: Making var-scope-local-default.o with make 'global' and env 'global'.
252 # the usual scopes, picking up the variable from the global scope.
253 # expect: Making var-scope-local-subst.o with make 'global+local' and env 'global+local'.
254 var-scope-local-subst.o: VAR := $${VAR}+local
259 var-scope-local-shell.o: VAR != echo output
265 # expect: Making .USE var-scope-local-use.o with make 'global' and env 'global'.
269 all: var-scope-local-use.o
270 var-scope-local-use.o: a_use