• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# http://www.gnu.org/software/make/manual/make.html#Multi_002dLine
2# see also define.mk
3
4override define two-lines
5echo foo
6echo $(bar)
7endef
8
9bar = xxx
10
11override CC := gcc
12override  AS = as
13override  define three-lines
14echo 1
15echo 2
16echo 3
17endef
18override	define  four-lines
19echo I
20echo II
21echo III
22echo IV
23endef
24
25test:
26	echo CC=$(CC) $(flavor CC)
27	echo AS=$(AS) $(flavor AS)
28	echo two BEGIN $(two-lines) END $(flavor two-lines)
29	echo three BEGIN $(three-lines) END $(flavor three-lines)
30	echo four BEGIN $(four-lines) END $(flavor four-lines)
31