help-make
[Top][All Lists]
Advanced

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

Re: A function to print instead of $(warning ) or $(error )


From: Noel Yap
Subject: Re: A function to print instead of $(warning ) or $(error )
Date: Wed, 23 Feb 2005 08:27:06 -0500
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Would $(shell echo) do?

HTH,
Noel

Pete Johnson wrote:

In trying to add some help messages to my Makefiles I have come across the following problem. I would like a function just like $(warning ), except I don't want it to prefix the message with <makefile>:<line>:

For example, if I have a Makefile like this...

define foo
a multi
line
string
endef

$(warning $(foo))

nothing:


and I run make, I get the following...

% make
Makefile:6: a multi
line
string
make: Nothing to be done for `nothing'.

I would like to just see...

% make
a multi
line
string
make: Nothing to be done for `nothing'.

I have tried using something like $(shell echo $(foo) 1>&2) but this will not work with multi-line strings (although it works fine for one line strings).

Does anyone know how to do this? I am surprised that this is not a built-in function.

Thanks,

-Pete



_______________________________________________
Help-make mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-make




reply via email to

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