File: define_with_comments.mk

package info (click to toggle)
android-platform-build-kati 10.0.0%2Br32%2Bgit20220314.09dfa26c4e59-7.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,628 kB
  • sloc: cpp: 10,340; sh: 1,087; python: 85; makefile: 46
file content (32 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (3)
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)