[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
= or no = in multiline variable assignments?
From: |
Mark Galeck (CW) |
Subject: |
= or no = in multiline variable assignments? |
Date: |
Mon, 13 Dec 2010 18:33:06 -0800 |
Hello,
In the section 6.8 Defining Multi-Line Variables,
it says
"You may omit the variable assignment operator if you prefer. If omitted, make
assumes it to be '=' and creates a recursively-expanded variable"
This does not appear to work. With this makefile:
define VAR
FOOBAR := foobar
endef
$(eval $(VAR))
$(info $(FOOBAR))
I get
C:\Temp>make
foobar
as expected. But when I put "=" after VAR, I get nothing.
Why??
Mark
- = or no = in multiline variable assignments?,
Mark Galeck (CW) <=