aboutsummaryrefslogtreecommitdiffstats
path: root/testcase/define_with_comments.mk
blob: e2c6c165c91fe973a594607e3f22b4f3ea439288 (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
define  define_with_space 
PASS1
endef
define  define_with_comment # foo
PASS2
endef
define  endef_with_comment
PASS3
endef # boo
define  endef_with_not_comment
PASS4
endef bar
define  endef_with_not_comment2
PASS5
endef	baz
define  endef_with_not_endef
endefPASS
endef
define  with_immediate_comment#comment
PASS6
endef
# Note: for some reason, the following is an error.
#endef#comment

test:
	echo $(define_with_space)
	echo $(define_with_comment)
	echo $(endef_with_comment)
	echo $(endef_with_not_comment)
	echo $(endef_with_not_comment2)
	echo $(endef_with_not_endef)
	echo $(with_immediate_comment)