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

1 2

  /src/usr.bin/make/unit-tests/
cond-token-string.mk 92 VAR= value
93 .if ("${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
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
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...]
directive-for-lines.mk 28 VAR= \
opt-debug.mk 5 # Enable debug logging for the variables (var.c).
8 VAR= value
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...]
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...]
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} $$$$
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...]
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...]
deptgt.mk 28 VAR=value # targets := NULL
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}*}
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"
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...]
cond-late.mk 27 VAR= ${${UNDEF} != "no":?:}
29 . if empty(VAR:Mpattern)
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"
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}
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
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...]
varparse-undef-partial.mk 8 LIST= ${DEF} ${UNDEF} ${VAR.${PARAM}} end
12 # The expression ${VAR.${PARAM}} refers to the variable named "VAR.:Q",
17 # The resulting expression is ${VAR.:Q}, which means that the
26 VAR.= var-dot without parameter
27 ${:UVAR.\:Q}= var-dot with parameter :Q
29 # At this point, the variable "VAR." is defined, therefore the expression
30 # ${VAR.:Q} is expanded, consisting of the variable name "VAR." and th
    [all...]
moderrs.mk 5 VAR= TheVariable
29 @echo 'VAR:Z=before-${VAR:Z}-after'
33 @echo 'VAR:${MOD_UNKN}=before-${VAR:${MOD_UNKN}:inner}-after'
37 @echo VAR:S,V,v,=${VAR:S,V,v,
41 @echo VAR:${MOD_TERM},=${VAR:${MOD_S}
45 -@echo "VAR:${MOD_TERM}=${VAR:${MOD_TERM}}
    [all...]
var-recursive.mk 1 # $NetBSD: var-recursive.mk,v 1.12 2025/04/13 09:29:33 rillig Exp $
47 VAR= ${VAR}
51 # expect: make: Variable VAR is recursive.
54 : recursive-line-before <${VAR}> recursive-line-after

Completed in 34 milliseconds

1 2