main shinobi / tests / mk / gnu / functions / andor / t002 / mk
 1
 2NEQ = $(subst $1,,$2)
 3f =
 4t = true
 5
 6all:
 7	@echo 1 $(or    ,    )
 8	@echo 2 $(or $t)
 9	@echo 3 $(or ,$t)
10	@echo 4 $(or z,true,$f,false)
11	@echo 5 $(or $t,$(info bad short-circuit))
12	@echo 6 $(or $(info short-circuit),$t)
13	@echo 7 $(or $(call NEQ,a,b),true)
14	@echo 8 $(or $(call NEQ,a,a),true)
15	@echo 9 $(or z,true,fal,se) hi
16	@echo 10 $(or ,true,fal,se)there
17	@echo 11 $(or   $(e) ,$f)