Hi I am stuck in this problem for long time. I expect output "ok" for this makefile. But I get syntax error on calling make:
ifeq (0, 0)
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
make: *** [default] Error 2
Code:
CHK = 0
default:
ifeq ($(CHK), 0)
echo "ok"
else
echo "not ok"
endif
makesyntax but rather a non-portablegmakeextension.