main shinobi / tests / mk / kati / define_with_comments / test / mk
 1define  define_with_space 
 2PASS1
 3endef
 4define  define_with_comment # foo
 5PASS2
 6endef
 7define  endef_with_comment
 8PASS3
 9endef # boo
10define  endef_with_not_comment
11PASS4
12endef bar
13define  endef_with_not_comment2
14PASS5
15endef	baz
16define  endef_with_not_endef
17endefPASS
18endef
19define  with_immediate_comment#comment
20PASS6
21endef
22# Note: for some reason, the following is an error.
23#endef#comment
24
25test:
26	echo $(define_with_space)
27	echo $(define_with_comment)
28	echo $(endef_with_comment)
29	echo $(endef_with_not_comment)
30	echo $(endef_with_not_comment2)
31	echo $(endef_with_not_endef)
32	echo $(with_immediate_comment)