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...