[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug? $(warning)/$(error) evaluated from inside a comment in a 'defin
From: |
Agent Zhang |
Subject: |
Re: bug? $(warning)/$(error) evaluated from inside a comment in a 'define'? |
Date: |
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:
define bogo
# $(warning this should not happen)
endef
all:
$(bogo)
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.
Cheers, agentz