--- Begin Message ---
Subject: |
gmake $(eval()) question. |
Date: |
Thu, 28 Jun 2007 19:48:02 -0000 |
User-agent: |
G2/1.0 |
Hi,
I have the following Makefile which demonstrates my problem:
---------Begin Makefile------------
HI=$(eval HELLO=Hello)
all:server client
server:
<tab>@echo "HELLO: $(HELLO)"
<tab>@echo "HI: $(HI)"
client:
<tab>@echo "HELLO: $(HELLO)"
<tab>@echo "HI: $(HI)"
-----------End Makefile------------
If I run gmake, I get this output:
HELLO:
HI:
HELLO: Hello
HI:
This thing that puzzles me is why the first line only contains
"HELLO:". As per my understanding, it should be the same as line 3.
If I run "gmake server" or "gmake client", I get:
HELLO:
HI:
Again, I think the first line of output should be "HELLO: Hello"
So can anyone explain why this is happening? I am running gmake 3.81
on Fedora Core 6.
Thanks,
--GS
--- End Message ---
--- Begin Message ---
Subject: |
confirm e90f2acabe306e93f2c929f70b7bb4c81314a43f |
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message. Do this if the message is
spam. If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list. The Approved: header can also appear in the first line
of the body of the reply.
--- End Message ---