aboutsummaryrefslogtreecommitdiffstats
path: root/testcase/ifdef_with_comments.mk
blob: 774ed21b429e115ae439bb4a71528aa8253de3df (plain)
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
33
34
VAR:=OK

ifdef  VAR 
PASS1:=PASS1
endif # foo

ifdef  VAR # hoge
PASS2:=PASS2
endif # foo

ifeq  ($(VAR),OK) # hoge
PASS3:=PASS3
else # bar
$(error fail)
endif # foo

ifeq  ($(VAR),NOK) # hoge
$(error fail)
else # bar
PASS4:=PASS4
endif # foo

ifeq  ($(VAR),NOK)# hoge
$(error fail)
else# bar
PASS5:=PASS5
endif# foo

test:
	echo $(PASS1)
	echo $(PASS2)
	echo $(PASS3)
	echo $(PASS4)
	echo $(PASS5)