HomeSort by: relevance | last modified time | path
    Searched defs:VAR (Results 1 - 25 of 50) sorted by relevancy

1 2

  /src/usr.bin/make/unit-tests/
var-scope-cmdline.mk 1 # $NetBSD: var-scope-cmdline.mk,v 1.4 2023/11/19 21:47:52 rillig Exp $
10 # which before var.c 1.586 from 2020-10-25 calculated the hash value of the
46 # The bug was added in var.c 1.183 on 2013-07-16, when Var_Set called
47 # Var_Delete to delete the global variable. Just two months earlier, in var.c
50 # row. This bug was fixed in var.c 1.835 from 2021-02-22.
53 # not possible". Deleting such a variable has been possible since var.c 1.204
70 VAR= global
72 .info ${VAR}
80 .MAKEFLAGS: VAR=makeflags
82 .info ${VAR}
    [all...]
directive-for-lines.mk 28 VAR= \
deptgt-end-jobs.mk 14 VAR= Should not be expanded.
17 : $@ '$${VAR}'
19 : $@ '$${VAR}' deferred
25 : $@ '$${VAR}'
27 : $@ '$${VAR}' deferred
30 : $@ '$${VAR}'
32 : $@ '$${VAR}' deferred
directive-elifdef.mk 4 # '.elifdef VAR', the usual form is the more general '.elif defined(VAR)'.
6 # At this point, VAR is not defined, so the condition evaluates to false.
8 .elifdef VAR
12 VAR= # defined
14 # At this point, VAR is defined, so the condition evaluates to true.
16 .elifdef VAR
directive-elifndef.mk 4 # more usual '.elif !defined(VAR)'.
6 # At this point, VAR is not yet defined, and due to the 'n' in 'elifndef' the
9 .elifndef VAR && VAR || VAR
14 VAR= # defined
16 # At this point, VAR is defined, and due to the 'n' in 'elifndef' the
19 .elifndef VAR && VAR || VAR
    [all...]
opt-debug.mk 5 # Enable debug logging for the variables (var.c).
8 VAR= value
opt-var-expanded.mk 1 # $NetBSD: opt-var-expanded.mk,v 1.4 2020/11/09 20:50:56 rillig Exp $
5 .MAKEFLAGS: -v VAR -v VALUE
7 VAR= other ${VALUE} $$$$
opt-var-literal.mk 1 # $NetBSD: opt-var-literal.mk,v 1.4 2020/11/09 20:50:56 rillig Exp $
5 .MAKEFLAGS: -V VAR -V VALUE
7 VAR= other ${VALUE} $$$$
cond-token-string.mk 92 VAR= value
93 .if ("${VAR}")
deptgt-end.mk 6 VAR= Should not be expanded.
9 : $@ '$${VAR}'
11 : $@ '$${VAR}' deferred
17 : $@ '$${VAR}'
19 : $@ '$${VAR}' deferred
24 : $@ '$${VAR}'
26 : $@ '$${VAR}' deferred
29 : $@ '$${VAR}'
31 : $@ '$${VAR}' deferred
opt-debug-for.mk 21 VAR.${outer}${inner}= value
opt-define.mk 9 .if ${VAR} != "1"
15 # as 'VAR=1' instead of '-DVAR'.
16 VAR= overwritten
17 .if ${VAR} != "overwritten"
24 .undef VAR
25 .if defined(VAR)
30 # behaves differently, it defines a variable with the name 'VAR=value' and the
33 .if defined(VAR)
36 .if ${VAR=value} != "1"
comment.mk 25 VAR= # This comment makes the variable value empty.
28 .if ${VAR} != ""
34 VAR=# defined but empty
37 VAR= value
38 .if ${VAR} != "value"
45 VAR= not part of the comment
46 .if ${VAR} != "not part of the comment"
51 VAR= \# # Both in the assignment.
52 .if ${VAR} != "\#" # And in the comparison.
59 WORDS= ${VAR:[#]} [
    [all...]
varmod-loop-delete.mk 8 # and at the end of the loop, this variable is deleted. Since var.c 1.204
9 # from 2016-02-18 and before var.c 1.963 from 2021-12-05, a variable could be
15 VAR= ${:U:@VAR@@} rest of the value
17 # In an assignment, the scope is 'Global'. Since the variable 'VAR' is
19 # expect+1: Cannot delete variable "VAR" while it is used
20 EVAL:= ${VAR}
25 VAR= ${:U:@VAR@@} rest of the value
32 # There is no variable named 'VAR' in the local scope, so nothin
    [all...]
posix-varassign.mk 16 VAR= value
17 .if ${VAR} != "value"
23 # instead, the variable named "VAR:" is defined.
24 VAR= before
25 VAR::= posix-immediate-expansion
26 .if ${VAR} != "before"
34 # instead, the variable named "VAR::" is defined.
35 VAR:::= posix-delayed-expansion
36 .if ${VAR} != "before"
43 VAR!= echo from shell comman
    [all...]
cond-token-var.mk 1 # $NetBSD: cond-token-var.mk,v 1.14 2025/06/28 22:39:28 rillig Exp $
7 # expression of the form ${VAR}. This is a simple
9 # variable modifiers such as in ${VAR:Mpattern}.
122 # expect: Var_Parse: ${VAR.param$U} (eval-defined-loud)
124 VAR.param= value of VAR.param
125 .if ${VAR.param$U}
opt-debug-file.mk 11 VAR= value ${:Uexpanded}
25 .if !${DEBUG_OUTPUT:tW:M*VAR = value expanded*}
36 .if !${:!cat opt-debug-file.debuglog!:tW:M*VAR = value $${:Uexpanded}*}
var-op-default.mk 1 # $NetBSD: var-op-default.mk,v 1.5 2023/11/19 22:32:44 rillig Exp $
6 # The variable VAR is not defined yet. Therefore it gets the default value
8 VAR?= default value
9 .if ${VAR} != "default value"
13 # At this point, the variable 'VAR' is already defined. The '?=' therefore
15 VAR?= ignored
16 .if ${VAR} != "default value"
44 # it expands the variable name exactly once. Therefore both 'VAR.param'
45 # and 'VAR.${param}' expand to 'VAR.param', and the second '?=' assignmen
    [all...]
var-op-assign.mk 1 # $NetBSD: var-op-assign.mk,v 1.12 2025/06/28 22:39:29 rillig Exp $
11 VAR= value
16 .if ${VAR} != "value"
30 VAR= new value and \# some $$ special characters # comment
34 .if ${VAR} != "new value and \# some \$ special characters"
35 . error ${VAR}
49 VAR= ${:! echo 'not yet evaluated' 1>&2 !}
50 VAR= ${:! echo 'this will be evaluated later' 1>&2 !}
54 .if ${VAR}
69 # nested expressions such as VAR.${param}
    [all...]
var-op-sunsh.mk 1 # $NetBSD: var-op-sunsh.mk,v 1.10 2022/02/09 21:09:24 rillig Exp $
11 VAR:sh= echo colon-sh
12 .if ${VAR} != "colon-sh"
18 VAR :sh = echo colon-sh-spaced
19 .if ${VAR} != "colon-sh-spaced"
28 # 'VAR:shell', using the '=' assignment operator.
29 VAR:shell= echo colon-shell
42 VAR:shoe:shore= echo two-colons
57 VAR.${:Uecho 123:sh}= ok-123
58 .if ${VAR.123} != "ok-123
    [all...]
varname-dot-make-save_dollars.mk 8 # var-op-expand.mk for ':=' in general
24 VAR:= ${DOLLARS}
25 # The reduction from 8 '$' to 4 '$' happens when ${VAR} is evaluated in the
28 .if ${VAR} != "\$\$\$\$"
36 VAR:= ${DOLLARS}
37 .if ${VAR} != "\$\$"
43 VAR:= $$$$$$$$
44 .if ${VAR} != "\$\$\$\$"
50 VAR:= $$$$$$$$
51 .if ${VAR} != "\$\$
    [all...]
directive-export.mk 11 VAR= value $$ ${INDIRECT}
19 .export VAR
20 .if ${:!env | grep '^VAR'!} != "VAR=value \$ indirect"
26 .undef VAR
27 .if ${:!env | grep '^VAR' || true!} != ""
31 # Before var.c 1.1117 from 2024-06-01, a plain ".export" without a syntactical
parse-var.mk 1 # $NetBSD: parse-var.mk,v 1.10 2024/06/02 15:31:26 rillig Exp $
83 VAR.${:U param }= value
84 .if ${VAR.${:U param }} != "value"
88 # Since var.c 1.323 from 2020-07-26 18:11 and until var.c 1.1047 from
97 # first pass of the ':@var@body@' modifier), and the expression contained a
123 # modifier for "BRACE_GROUP"'. Fixed in var.c 1.1047 from 2023-02-18.
vardebug.mk 3 # Demonstrates the debugging output for var.c.
7 # expect: Global: VAR = added
8 VAR= added # VarAdd
9 # expect: Global: VAR = overwritten
10 VAR= overwritten # Var_Set
11 # expect: Global: delete VAR
12 .undef VAR
13 # expect: Global: ignoring delete 'VAR' as it is not found
14 .undef VAR
24 # expect: Global: VAR =
    [all...]
cond-token-plain.mk 93 .if ${:Uvar}&&name != "var&&name"
96 .if ${:Uvar}||name != "var||name"
110 VAR= defined
111 .if VAR
235 # expect+1: Malformed conditional "VAR.${IF_COUNT::+=1} != """
236 .if VAR.${IF_COUNT::+=1} != ""
256 COND= VAR.$${MOD_COUNT::+=1}
257 .if ${${COND} == "VAR.":?yes:no} != "yes"

Completed in 53 milliseconds

1 2