main shinobi / tests / mk / gnu / features / conditionals / t004 / mk
 1
 2arg1 = first
 3arg2 = second
 4arg3 = third
 5arg4 = cc
 6arg5 = second
 7
 8ifeq ($(arg1),$(arg2))
 9  $(info failed 1)
10else ifeq '$(arg2)' "$(arg2)"
11  ifdef undefined
12    $(info failed 2)
13  else
14    $(info success)
15  endif
16else ifneq '$(arg3)' '$(arg3)'
17  $(info failed 3)
18else ifdef arg5
19  $(info failed 4)
20else ifdef undefined
21  $(info failed 5)
22else
23  $(info failed 6)
24endif
25
26.PHONY: all
27all: ; @: