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

_______________________________________________
help-gnu-utils mailing list
help-gnu-utils@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to