help-gnu-utils
[Top][All Lists]
Advanced

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

[GNU Make] Stem for phony target


From: * Tong *
Subject: [GNU Make] Stem for phony target
Date: 21 Mar 2007 21:05:05 GMT
User-agent: pan 0.119 (Karma Hunters)

Hi,

I have the following make file:

-------------------------------------------
all: something else

.PHONY: MakeAppleJuice MakeOrangeJuice MakeTomatoJuice

MakeAppleJuice:
        make_juice Apple.in.source  Apple.in.condition
                                                    
MakeOrangeJuice:                                    
        make_juice Orange.in.source Orange.in.condition 
                                                    
MakeTomatoJuice:                                    
        make_juice Tomato.in.source Tomato.in.condition 
-------------------------------------------

Is there anyway to combine the 3 rules into one? I hope there is, because
the 3 rules only different in what files they use and what juices then make
(but I still need the 3 phony targets). I tried the following but it didn't
work:

-------------------------------------------
Make%Juice: %.in.source 
        make_juice $*.in.source $*.in.condition 
-------------------------------------------

Please help.

thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sf.net/techdocs/
  http://xpt.sf.net/tools/

-- 
Posted via a free Usenet account from http://www.teranews.com



reply via email to

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