On 6/19/07, Agent Zhang <[EMAIL PROTECTED]> wrote:
...
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.
On 6/19/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.
The above statement is nonsensical. If something is inside a define,
is not inside a comment.
define bogo
# $(warning this should no
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
Hi, Makers!
i just discovered a Make behaviour which really surprises me. While that
in itself is nothing new ;), this one certainly violates the principal
of least astonishment:
When a $(warning) or $(error) is inside a 'define', it is evaluated even
if it is part of a comment. A demonstratio