blob: c17441608136e5689fa45fb6291483dc17f5006e [file] [log] [blame]
Shinichiro Hamaji48a85e32015-04-03 17:03:49 +09001TRUE:=foo
2FALSE:=
3XY:=x y
4X:=$(subst y, ,$(XY))
5Y:=$(subst x, ,$(XY))
6
7$(and ${TRUE}, $(info PASS_1))
8$(and ${FALSE}, $(info FAIL_2))
9# Too many arguments.
10$(info $(and ${TRUE}, PASS, PASS))
11
12$(info $(and ${TRUE}, $(X) ))
13$(info $(and ${TRUE}, $(Y) ))
Shinichiro Hamaji2216dd62015-04-11 13:44:39 +090014$(and ${FALSE} , $(info FAIL_3))
Shinichiro Hamaji48a85e32015-04-03 17:03:49 +090015
16test:
17 echo OK