help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ifeq problem


From: Tom Rosmond
Subject: ifeq problem
Date: Sun, 18 Dec 2011 10:43:34 -0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]