[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simple Makefile problem
From: |
Paul D. Smith |
Subject: |
Re: Simple Makefile problem |
Date: |
Tue, 28 Aug 2001 09:54:20 -0400 |
%% Mike Pelley <address@hidden> writes:
>> > $error(no good)
>>
>> This is not the right syntax.
mp> Sorry, that's what I get for retyping. Here is a cut and paste:
mp> MIKE := x
mp> ifeq "$(MIKE)" "x"
mp> $(error no good)
mp> endif
mp> all:
mp> echo hi
It works just as expected for me:
$ make
Makefile:3: *** no good. Stop.
You don't say what version of GNU make you're using, but be aware that
the $(error ...) function was added in version 3.78, so you need to be
using that or better.
--
-------------------------------------------------------------------------------
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