Lines Matching full:var
1 # $NetBSD: var-scope-local.mk,v 1.11 2024/03/05 23:07:58 rillig Exp $
11 # 'target: VAR=value', one at a time.
91 # expressions like ${@}, ${.TARGET} ${VAR:Mpattern} (see Var_Parse,
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
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:
202 @echo "Making ${.TARGET} with make '"${VAR:Q}"' and env '$$VAR'."
208 VAR= global
209 .export VAR
217 # expect: Making var-scope-local-assign.o with make 'local' and env 'local'.
218 var-scope-local-assign.o: VAR= local
222 var-scope-local-append.o: VAR+= local
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}
236 # 'VAR= global+local'.
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'.
251 # assignment as 'VAR := ${VAR}+local' and searches for the variable 'VAR' in
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
262 # While VAR=use will be set for a .USE node, it will never be seen since only
265 # expect: Making .USE var-scope-local-use.o with make 'global' and env 'global'.
266 a_use: .USE VAR=use
267 @echo "Making .USE ${.TARGET} with make '"${VAR:Q}"' and env '$$VAR'."
269 all: var-scope-local-use.o
270 var-scope-local-use.o: a_use