File: define.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 (24 lines) | stat: -rw-r--r-- 440 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
# http://www.gnu.org/software/make/manual/make.html#Multi_002dLine
# Note: in make 4.x
# define name =
# ...
# endef
#
# but in make 3.x
# define name
# ...
# endef
# i.e. no = needed after name.
# make 3.x defines "name =" for make 4.x example.
# TODO: should we provide flag to specify gnu make version?
# note: in make 4.x, there is `undefine`.

define two-lines
echo foo
echo $(bar)
endef

bar = xxx

test:
	echo BEGIN $(two-lines) END