aboutsummaryrefslogtreecommitdiffstats
path: root/testcase/ifdef_with_comments.mk
blob: 1a4e12814aaeec8265ebbd5a38b8ccbce47031ee (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
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

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