I have a make file that is throwing an error. I believe that the problem is down to a conditional statement that I have the syntax wrong for but can’t figure out what is actually wrong.
To be clear I am running the code using the command make {target_name}
The code is
ifeq ($(isDynamic), d)
libExt=.so
else
libExt=.a
endif
The error is
/bin/sh: 0403-057 Syntax error at line 1 : `(‘ is not expected.
You’re running a Makefile as a shell script. You probably want to run
makeon it instead. Possibly you want to turn it into amakescript, although this usually isn’t quite what people intend; make the first line(or wherever GNU
makeis) andchmod +xit.