[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need help with if conditional statement in my makefile
From: |
Paul D. Smith |
Subject: |
Re: need help with if conditional statement in my makefile |
Date: |
Tue, 1 Jun 2004 19:48:57 -0400 |
%% Suman Ojha <address@hidden> writes:
so> ifeq ($BUILD),DEBUG)
You're missing an open paren here; it should be:
ifeq ($(BUILD),DEBUG)
...
so> I have also tried other syntax like the following:
so> if [ ${BUILD} == DEBUG ] ; then \
No, this is shell syntax. You can only use that within command scripts
(lines after a rule that start with a TAB) since those are passed to the
shell. Make doesn't grok shell syntax.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist