bug-make
[Top][All Lists]
Advanced

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

define strangeness


From: Boris Kolpackov
Subject: define strangeness
Date: Fri, 16 Apr 2004 12:55:45 -0500
User-agent: Mutt/1.5.4i

Good day,

Well, Paul will probably tell me that it is not a bug (as he did
with comments in define) but I will report it anyway.

Consider this makefile:

foobar := world

define name
\
foobar
endef

.PHONY: hello
hello: ; @echo hello $(value $(name))

It prints just "hello". I would guess it is because define assigns
the value verbatim but I think this behavior is very weird. The 
real-life example that breaks because of this would be:


define foo
@echo $(value $1)
endif

define bar
$(call foo,\  # Imagine this line is too long so I want to break it.
baz)
endef


-boris

Attachment: signature.asc
Description: Digital signature


reply via email to

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