bug-make
[Top][All Lists]
Advanced

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

make buildin function strings handling


From: Incarnation Lee
Subject: make buildin function strings handling
Date: Tue, 22 May 2012 00:24:19 +0800

I am improving my codes which managed by gnu make recently. And I found a behavior of make buildin function when handling strings. I assume that this maybe for some specific situations. My OS is Ubuntu 12.04 and with gnu make v.3.81. Details list follow:
obj=a.o b.o c.o

define Test
tmp1=$(word 1, $$(obj))
endef
$(eval $(call Test))
tmp2=$(word 1,$(obj))

echo $(tmp1)
echo $(tmp2)

do make -n
and get the result
a.o b.o c.o(tmp1)
a.o(tmp2)

reply via email to

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