SHELL := bash #PICS := $(wildcard pictest/DSC?????.jpg) PICS := $(wildcard sony/DSC?????.jpg) # PICS := $(wildcard sony/DSC?????.jpg htc/IMG_*_??????.jpg) SMALL := $(PICS:.jpg=_small.jpg) THUMB := $(PICS:.jpg=_thumb.jpg) all: $(SMALL) $(THUMB) small.zip big.zip ./jpg2html.sh %_small.jpg: %.jpg exiftran -a -i $< convert -scale 800x800 $< $@ %_thumb.jpg: %_small.jpg convert -scale 80x80 $< $@ big.zip: $(PICS) zip -r $@ $^ small.zip: $(SMALL) zip -r $@ $^ .PHONY: all clean clean: rm -rf sony/*_{small,thumb}.jpg sony/*.html index.html *.zip