[jamming] The right way to do
Mildred
ml.mildred593 at online.fr
Thu Nov 15 08:09:52 PST 2007
Hi,
I'm writing Jam rules and I'm wondering if I do it right, because it
seems there is a heavy skeleton I have to follow.
For example, if someone asks me to write a rule for some program that
converts jpeg files to png, I would write in my Jamrules:
rule JpegToPng {
local png = [ FGristFiles $(1) ] ;
local jpeg = [ FGristFiles $(2) ] ;
SEARCH on $(jpeg) = $(SEARCH_SOURCE) ;
MakeLocate $(png) : $(LOCATE_TARGET) ;
JpegToPng1 $(png) : $(jpeg) ;
}
rule JpegToPng1 png : jpeg {
Depends $(png) : $(jpeg) ;
Clear clear : $(png) ;
}
actions JpegToPng1 {
jpeg2png '$(>)' '$(<)'
}
Isn't there a more effecient way to do that ? A way to avoid always
writing the same thing at the beginning of my rules (that is the
grist, the SEARCH and LOCATE variables that are always the same).
How do you do ?
Thanks.
Mildred
--
Mildred Ki'lya
E-Mail: mildred593(at)online.fr
Site: <http://mildred632.free.fr/>
XMPP: <mildred at jabber.fr> (GoogleTalk, Jabber)
GPG: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]
More information about the jamming
mailing list