Initial commit
[sh-gallery.git] / Makefile
1 SHELL := bash
2
3 #PICS := $(wildcard pictest/DSC?????.jpg)
4 PICS := $(wildcard sony/DSC?????.jpg)
5 # PICS := $(wildcard sony/DSC?????.jpg htc/IMG_*_??????.jpg)
6 SMALL := $(PICS:.jpg=_small.jpg)
7 THUMB := $(PICS:.jpg=_thumb.jpg)
8
9
10 all: $(SMALL) $(THUMB) small.zip big.zip
11         ./jpg2html.sh
12
13 %_small.jpg: %.jpg
14         exiftran -a -i $<
15         convert -scale 800x800 $< $@
16
17 %_thumb.jpg: %_small.jpg
18         convert -scale 80x80 $< $@
19
20 big.zip: $(PICS)
21         zip -r $@ $^
22
23 small.zip: $(SMALL)
24         zip -r $@ $^
25
26 .PHONY: all clean
27 clean:
28         rm -rf sony/*_{small,thumb}.jpg sony/*.html index.html *.zip