blob: 41a94004c0ef263bd6bf8a8baf23abd5e8be1ed7 [file] [log] [blame]
VAR=var
VARREF=VAR
EMPTY=
UNDEFREF=UNDEFINED
RESULT=
ifeq "$(VAR)" "var"
RESULT += PASS
else
RESULT += FAIL
endif
ifneq "$(VAR)" "var"
RESULT += FAIL
else
RESULT += PASS
endif
ifeq '$(VAR)' "var"
RESULT += PASS
else
RESULT += FAIL
endif
ifeq "$(VAR)" 'var'
RESULT += PASS
else
RESULT += FAIL
endif
ifeq "$(UNDEFINED)" ""
RESULT += PASS
else
RESULT += FAIL
endif
ifeq "" "$(UNDEFINED)"
RESULT += PASS
else
RESULT += FAIL
endif
ifeq "var var" "$(VAR) $(VAR)"
RESULT += PASS
else
RESULT += FAIL
endif
test:
echo $(RESULT)