I am trying to run this little makefile on my Scientific Linux
workstation:
-------------------- makefile ----------------------
#
HOST = cedar
all:
ifeq ($(HOST),cedar)
@echo $(HOST)
endif
-------------------------------------------
and I get this error message when running 'make':
[2006]cedar /home/rosmond: make
ifeq (cedar,cedar)
/bin/sh: -c: line 0: syntax error near unexpected token `cedar,cedar'
/bin/sh: -c: line 0: `ifeq (cedar,cedar)'
make: *** [all] Error 2
It seems to be trying to execute the file as a shell script. I have the
necessary 'tab' prefixes in the lines of the 'all' rule. My login shell
is 'tcsh'. What is wrong?
T. Rosmond
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make