[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gmake $(eval()) question.
From: |
gokrix |
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
- gmake $(eval()) question.,
gokrix <=