On 6/20/07, Stephan Beal <[EMAIL PROTECTED]> 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


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to