[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug? $(warning)/$(error) evaluated from inside a comment in a 'defin
Re: bug? $(warning)/$(error) evaluated from inside a comment in a 'define'?
Wed, 20 Jun 2007 13:03:17 +0800
On 6/20/07, Stephan Beal <address@hidden> wrote:
When a $(warning) or $(error) is inside a 'define', it is evaluated even
if it is part of a comment. A demonstration:
I think the test case to demonstrate this bug can be simplified as:
# $(warning this should not happen)
And make produces
$ make -f a.mk
a.mk:5: this should not happen
Yeah, it's really funny.
Also, $(info ...) and its families seem to evaluate "too early"
according to my vague impression.