main shinobi / tests / mk / gnu / variables / define / t002 / mk
 1
 2FOO = foo
 3
 4define multi =
 5echo hi
 6@echo $(FOO)
 7endef # this is the end
 8
 9define simple :=
10@echo $(FOO)
11endef
12
13define posix ::=
14@echo $(FOO)
15endef
16
17append = @echo a
18
19define append +=
20
21@echo b
22endef
23
24define cond ?= # this is a conditional
25@echo first
26endef
27
28define cond ?=
29@echo second
30endef
31
32FOO = there
33
34all: ; $(multi)
35	$(simple)
36	$(posix)
37	$(append)
38	$(cond)