main shinobi / tests / mk / kati / or / test / mk
 1TRUE:=foo
 2FALSE:=
 3XY:=x 	y
 4X:=$(subst y, ,$(XY))
 5Y:=$(subst x, ,$(XY))
 6
 7$(or ${FALSE}, $(info PASS_1))
 8# expect "foo"
 9$(info $(or ${TRUE}, $(info FAIL_2)))
10# Too many arguments.
11$(info $(or ${FALSE}, PASS, PASS))
12
13$(info $(or ${FALSE}, $(X)  ))
14$(info $(or ${FALSE}, $(Y)  ))
15$(info $(or ${FALSE} , PASS, PASS))
16
17test:
18	echo OK