[GNU Make] Stem for phony target

* Tong * <[email protected]>
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.