blob: f5481d4540c40ad74ce5bd5bb805f345ff7e273c [file] [log] [blame]
Shinichiro Hamajic8b4b1c2015-07-07 14:57:53 +09001define or1
2$(or , \
3 ,,)
4endef
5
6define or2
7$(or ,,, \
8)
9endef
10
11define or3
12$(or , , ,)
13endef
14
Dan Willemsenae8fc802015-08-20 13:46:14 -070015define var
16A\
17
18B
19endef
20
21define var2
22A\
23\
24
25B
26endef
27
28define var3
29A\
30B
31endef
32
Shinichiro Hamajic8b4b1c2015-07-07 14:57:53 +090033test:
34 echo $(if $(call or1),FAIL,PASS)_or1
35 echo $(if $(call or2),FAIL,PASS)_or2
36 echo $(if $(call or3),FAIL,PASS)_or3
Dan Willemsene6f68582015-08-21 11:13:28 -070037 $(info $(var))
38 $(info $(var2))
39 $(info $(var3))