









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] Loop/wildcard-like syntax for GNU make?
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
niosop at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.b9.com/pipermail/nmlug/attachments/20070417/0d1e77dd/attachment.htm
|
|