Re: Loop/wildcard-like syntax for GNU make?

"Matthew Bowie" <[email protected]>
Newsgroups gmane.org.user-groups.nmlug
Message-ID <[email protected]>
Here's something that's probably more what you were looking for.

all:
        for i in *.[Gg][Ii][Ff]; do make `echo $${i} | sed
s/"[gG][iI][fF]"/jpg/g`; done

%.jpg: %.[gG][iI][fF]
        convert $*.[gG][iI][fF] $*.jpg

Seems to work for me, but might depend on your shell, etc.  Might want to
set the SHELL variable to be sure it works.

Matt


-- 
Matthew Bowie
Programmer/IT Consultant
[email protected]

_______________________________________________
NMLUG mailing list
[email protected]
http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug
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.