Article View: comp.unix.programmer
Article #3713[GNU Make] Stem for phony target
From: * Tong *
Date: Wed, 21 Mar 2007 21:05
Date: Wed, 21 Mar 2007 21:05
40 lines
1934 bytes
1934 bytes
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
Technical Details
Message-ID:
<46019e01$0$16388$88260bb3@free.teranews.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news2.euro.net!66.150.105.54.MISMATCH!nntpserver.com!zeus.nntpserver.com!10.1.1.41.MISMATCH!pfilter-v0.1!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fc89c,a0c39f8de3604803,start X-Google-Thread: 109f73,a0c39f8de3604803,start X-Google-Attributes: gidfc89c,gid109f73,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news2.euro.net!66.150.105.54.MISMATCH!nntpserver.com!zeus.nntpserver.com!10.1.1.41.MISMATCH!pfilter-v0.1!not-for-mail From: * Tong * <sun_tong_001@users.sourceforge.net> Subject: [GNU Make] Stem for phony target Newsgroups: comp.unix.programmer,gnu.utils.help User-Agent: pan 0.119 (Karma Hunters) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 21 Mar 2007 21:05:05 GMT Lines: 37 Message-ID: <46019e01$0$16388$88260bb3@free.teranews.com> NNTP-Posting-Date: 21 Mar 2007 21:05:05 GMT X-Complaints-To: abuse@teranews.com