Scott Lamb wrote:
$ cat > GNUmakefile <<EOF
SOURCES = $(wildcard *.jpg)
THUMBNAILS = $(SOURCES:%.jpg=%.th.jpg)
.PHONY: thumbnails
thumbnails: $(THUMBNAILS)
%.th.jpg: %.jpg
convert $< -thumbnail 200x200 > $@ || (rm $@; false)
.PHONY: clean
clean:
rm -f *.th.jpg
EOF
(note that those indentations have to be tabs, not spaces)
Um, what shell are you working in? I can't hit TAB on mine because
that wants to put a file name in place - it's bash' autocompletion tab...
--
W | It's not a bug - it's an undocumented feature.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley@xxxxxxxxxx> . 303.442.6410 x130
IT Director / SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Imaging . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos