Lines Matching defs:SUFFIXES
3 # Tests for the special "variable" .SUFFIXES, which lists the suffixes that
7 # The name '.SUFFIXES' does not refer to a real variable, instead it can be
8 # used as a starting "variable name" for expressions like ${.SUFFIXES} or
9 # ${.SUFFIXES:M*o}.
12 .if ${.SUFFIXES} != ""
15 # There is no actual variable named '.SUFFIXES', it is all made up.
16 .if defined(.SUFFIXES)
20 # The suffixes list is still empty, and so is the "variable" '.SUFFIXES'.
21 .if !empty(.SUFFIXES)
25 .SUFFIXES: .c .o .1 .err
28 .if ${.SUFFIXES} != ".c .o .1 .err"
32 # There is still no actual variable named '.SUFFIXES', it is all made up.
33 .if defined(.SUFFIXES)
38 # is no variable named '.SUFFIXES' but evaluating '${.SUFFIXES}' nevertheless
40 .if empty(.SUFFIXES)
44 .SUFFIXES: .tar.gz
47 .if ${.SUFFIXES} != ".c .o .1 .err .tar.gz"
51 # Deleting .SUFFIXES has no effect since there is no actual variable of that
54 # expect: Global: ignoring delete '.SUFFIXES' as it is not found
55 .undef .SUFFIXES
57 .if ${.SUFFIXES} != ".c .o .1 .err .tar.gz"
62 # attempt at setting the variable named '.SUFFIXES' is rejected.
64 # expect: Global: ignoring '.SUFFIXES = set' as it is read-only
65 .SUFFIXES= set
66 # expect: Global: ignoring '.SUFFIXES = append' as it is read-only
67 .SUFFIXES+= append
68 # expect: Global: ignoring '.SUFFIXES = assign' as it is read-only
69 _:= ${.SUFFIXES::=assign}
70 # expect: Global: ignoring '.SUFFIXES = preserve' as it is read-only
71 _:= ${preserve:L:_=.SUFFIXES}
74 # Using the name '.SUFFIXES' in a .for loop looks strange because these
78 .for .SUFFIXES in .c .o
79 . if ${.SUFFIXES} != ".c" && ${.SUFFIXES} != ".o"
84 # After the .for loop, the expression '${.SUFFIXES}' refers to the list of
86 .if ${.SUFFIXES} != ".c .o .1 .err .tar.gz"
90 # Using the name '.SUFFIXES' in the modifier ':@var@body@' does not create an
92 # '.SUFFIXES' for the iteration variable is unusual. In ODE Make, the
94 # the name would be '.SUFFIXES.', furthermore the name of the iteration
97 # expect: Command: ignoring '.SUFFIXES = 1' as it is read-only
98 # expect: Command: ignoring '.SUFFIXES = 2' as it is read-only
99 # expect: Command: ignoring delete '.SUFFIXES' as it is not found
100 .if ${1 2:L:@.SUFFIXES@${.SUFFIXES}@} != ".c .o .1 .err .tar.gz .c .o .1 .err .tar.gz"