summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/make/syntax/enl/Makefile
blob: a7c69555f2446b777c7c494f8b0853ae53795e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $FreeBSD$
#
# Test handling of escaped newlines.
#

.ifmake test1

# This should succeed
\
\
\
test1:
	@echo ok

.elifmake test2

# This should print ok because the second assignment to foo is actually
# a continued comment.
FOO=ok
#\
\
FOO=not ok
test2:
	@echo "${FOO}"

.elifmake test3

# Make sure an escaped newline inserts a space
test3: a\
b

a:
	@echo a

b:
	@echo b

.elifmake test4

# Make sure an escaped newline inserts exactly one space
FOO=a\
			      b

test4:
	@echo "${FOO}"

.elifmake test5

# Make sure each escaped newline inserts exactly one space
FOO=a\
\
\
\
b

test5:
	@echo "${FOO}"
    
.endif
OpenPOWER on IntegriCloud