Lines Matching +full:in +full:- +full:line
8 # Comments start with a <number-sign> ( '#' ) and continue until an
12 # anywhere in the makefile except in a command line, an include
13 # line, or a line immediately preceding an include line, it shall
15 # line, with a single <space>.
17 # When an escaped <newline> is found in a command line in a
18 # makefile, the command line shall contain the <backslash>, the
19 # <newline>, and the next line, except that the first character of
20 # the next line shall not be included if it is a <tab>.
22 # When an escaped <newline> is found in an include line or in a
23 # line immediately preceding an include line, the behavior is
32 # in a variable assignment stores "#" as part of the value.
36 # newline in a variable assignment simply stores the backslashes as part
38 # Similarly, an even number of backslashes before a newline in a
43 # We will add dependencies like "all: yet-another-test" later.
45 # Some variables to be expanded in tests
50 # Backslash at end of line in a comment\
52 # This is also tested in comment.mk.
58 # Embedded backslash in variable should be taken literally.
68 all: var-1bs
69 var-1bs: .PHONY __printvars VAR1BS VAR1BSa VAR1BSA VAR1BSda VAR1BSdA \
72 # Double backslash in variable should be taken as two literal backslashes.
82 all: var-2bs
83 var-2bs: .PHONY __printvars VAR2BS VAR2BSa VAR2BSA VAR2BSda VAR2BSdA \
86 # In a variable assignment, when the sequence <backslash><newline> occurs at
87 # the end of a physical line, it is replaced with a single space.
104 all: var-1bsnl
105 var-1bsnl: .PHONY
106 var-1bsnl: .PHONY __printvars \
110 # Double-backslash-newline in a variable setting.
132 all: var-2bsnl
133 var-2bsnl: .PHONY __printvars \
137 # Triple-backslash-newline in a variable setting.
159 all: var-3bsnl
160 var-3bsnl: .PHONY __printvars \
164 # Backslash-newline in a variable setting, plus any amount of white space
165 # on the next line, is replaced by a single space.
167 VAR1BSNL00= first line\
169 # above line is entirely empty, and this is a comment
170 VAR1BSNL0= first line\
171 no space on second line
172 VAR1BSNLs= first line\
173 one space on second line
174 VAR1BSNLss= first line\
175 two spaces on second line
176 VAR1BSNLt= first line\
177 one tab on second line
178 VAR1BSNLtt= first line\
179 two tabs on second line
180 VAR1BSNLxx= first line\
181 many spaces and tabs [ ] on second line
183 all: var-1bsnl-space
184 var-1bsnl-space: .PHONY __printvars \
188 # Backslash-newline in a command is retained.
190 # The "#" in "# second line without space" makes it a comment instead
191 # of a syntax error if the preceding line is parsed incorrectly.
192 # The ":" in "third line':" makes it look like the start of a
193 # target instead of a syntax error if the first line is parsed incorrectly.
195 all: cmd-1bsnl
196 cmd-1bsnl: .PHONY
198 echo :'first line\
199 #second line without space\
200 third line':
201 echo :'first line\
202 second line spaces should be retained':
203 echo :'first line\
204 second line tab should be elided':
205 echo :'first line\
208 # When backslash-newline appears at the end of a command script,
210 # The shell should elide the backslash-newline.
212 all: cmd-1bsnl-eof
213 cmd-1bsnl-eof:
215 echo :'command ending with backslash-newline'; \
217 # above line must be blank
219 # Double-backslash-newline in a command.
226 all: cmd-2bsnl
227 cmd-2bsnl: .PHONY
234 # Triple-backslash-newline in a command is retained.
236 all: cmd-3bsnl
237 cmd-3bsnl: .PHONY
239 echo :'first line\\\
240 #second line without space\\\
241 third line':
242 echo :'first line\\\
243 second line spaces should be retained':
244 echo :'first line\\\
245 second line tab should be elided':
246 echo :'first line\\\