Home | History | Annotate | Download | only in testcase
      1 VAR:=OK
      2 
      3 ifdef  VAR 
      4 PASS1:=PASS1
      5 endif # foo
      6 
      7 ifdef  VAR # hoge
      8 PASS2:=PASS2
      9 endif # foo
     10 
     11 ifeq  ($(VAR),OK) # hoge
     12 PASS3:=PASS3
     13 else # bar
     14 $(error fail)
     15 endif # foo
     16 
     17 ifeq  ($(VAR),NOK) # hoge
     18 $(error fail)
     19 else # bar
     20 PASS4:=PASS4
     21 endif # foo
     22 
     23 ifeq  ($(VAR),NOK)# hoge
     24 $(error fail)
     25 else# bar
     26 PASS5:=PASS5
     27 endif# foo
     28 
     29 test:
     30 	echo $(PASS1)
     31 	echo $(PASS2)
     32 	echo $(PASS3)
     33 	echo $(PASS4)
     34 	echo $(PASS5)
     35