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