[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Variables to represent pre-requisites
From: |
Nalinaksh Pai |
Subject: |
Variables to represent pre-requisites |
Date: |
Thu, 27 Dec 2001 08:16:12 -0800 (PST) |
Folks,
I need your help for the following case.
The makefile is as shown:
################
foo_var1 = a_var1.o
foo_var2 = a_var2.o
foo_%_new: $(foo_%) c_%.o
echo $^
a_var1.o:
a_var2.o:
c_var1.o:
c_var2.o:
################
When I fire make as shown, the output is
#] make foo_var1_new
echo c_var1.o
c_var1.o
Now, I was expecting echo to print the pre-req as
a_var1.o c_var1.o
i.e I was expecting
$(foo_%) to be expanded to $(foo_var1) and
subsequently replaced by a_var1.o
Please let me know whether this is possible.
Thanks,
Nalin
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Variables to represent pre-requisites,
Nalinaksh Pai <=
- Prev by Date:
slm
- Previous by thread:
slm
- Index(es):