forked from n64dev/n64dev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (25 loc) · 771 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
CFLAGS = -lexpat
include Makefile.thumbslist
.INTERMEDIATE: thumbsfinder
.PHONY: all clean thumbdirs
all: thumbs thumbsfinder
clean:
rm -Rfv i/l i/m i/t Makefile.thumbslist thumbsfinder
Makefile.thumbslist: thumbsfinder index.html
./thumbsfinder < index.html > Makefile.thumbslist
.PRECIOUS: %.html
%.html:
mkdir -p ${@D}
touch "$@"
i/l/%.jpg: i/%.jpg i/l/index.html
convert "$<" -resize 640x480 "$@"
i/l/%.png: i/%.png i/l/index.html
convert "$<" -resize 640x480 "$@"
i/m/%.jpg: i/%.jpg i/m/index.html
convert "$<" -resize 320x240 "$@"
i/m/%.png: i/%.png i/m/index.html
convert "$<" -resize 320x240 "$@"
i/t/%.jpg: i/%.jpg i/t/index.html
convert "$<" -resize 160x120 "$@"
i/t/%.png: i/%.png i/t/index.html
convert "$<" -resize 160x120 "$@"