aboutsummaryrefslogtreecommitdiff
path: root/testcase/and.mk
blob: c17441608136e5689fa45fb6291483dc17f5006e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
TRUE:=foo
FALSE:=
XY:=x 	y
X:=$(subst y, ,$(XY))
Y:=$(subst x, ,$(XY))

$(and ${TRUE}, $(info PASS_1))
$(and ${FALSE}, $(info FAIL_2))
# Too many arguments.
$(info $(and ${TRUE}, PASS, PASS))

$(info $(and ${TRUE}, $(X)  ))
$(info $(and ${TRUE}, $(Y)  ))
$(and ${FALSE} , $(info FAIL_3))

test:
	echo OK