[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditionals
From: |
Paul D. Smith |
Subject: |
Re: Conditionals |
Date: |
Mon, 16 Jul 2001 11:18:50 -0400 |
%% Barry D Benowitz <address@hidden> writes:
bdb> #now I test it:
bdb> ifeq ($(strip $(target_arch) ),$(strip $(hp) ) )
bdb> ifeq ($(strip $(target_arch) ),$(strip $(linux) ) )
bdb> neither result1 nor result2 are set. What am I doing wrong.
Take out all that extraneous whitespace. Whitespace _IS_
significant, especially at the end of text sections.
In particular, the whitespace right before the last paren, outside of
the strip function, is definitely screwing things up; the expansion
would be something like:
ifeq (linux,linux )
Well, "linux" is not equal to "linux ", so they don't match.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://www.paulandlesley.org/gmake/
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- Conditionals, Barry D Benowitz, 2001/07/16
- Re: Conditionals,
Paul D. Smith <=