1VAR=var 2VARREF=VAR 3EMPTY= 4UNDEFREF=UNDEFINED 5 6RESULT= 7 8ifeq "$(VAR)" "var" 9RESULT += PASS 10else 11RESULT += FAIL 12endif 13ifneq "$(VAR)" "var" 14RESULT += FAIL 15else 16RESULT += PASS 17endif 18 19ifeq '$(VAR)' "var" 20RESULT += PASS 21else 22RESULT += FAIL 23endif 24ifeq "$(VAR)" 'var' 25RESULT += PASS 26else 27RESULT += FAIL 28endif 29 30ifeq "$(UNDEFINED)" "" 31RESULT += PASS 32else 33RESULT += FAIL 34endif 35ifeq "" "$(UNDEFINED)" 36RESULT += PASS 37else 38RESULT += FAIL 39endif 40 41ifeq "var var" "$(VAR) $(VAR)" 42RESULT += PASS 43else 44RESULT += FAIL 45endif 46 47test: 48 echo $(RESULT) 49