Root/labsw/web/Makefile

Source at commit 51106cf9b34d773e72aa00385c80a9abb76b28df created 5 years 9 months ago.
By Werner Almesberger, ircstat/ML: update for 11/2013
1SRC=http://downloads.qi-hardware.com/people/werner/labsw/tmp
2
3DL=labsw-0-off.jpg labsw-0-inside.jpg \
4   labsw-m1-off.jpg labsw-m1-boot.jpg labsw-m1-render.jpg
5GEN=labsw-0-off-small.jpg labsw-0-inside-small.jpg \
6    ovr-front.png ovr-rear.png \
7    labsw-m1-off-small.jpg labsw-m1-boot-small.jpg labsw-m1-render-small.jpg \
8    loop-left.png loop-right.png
9
10
11.PHONY: upload gen clean spotless
12
13.SUFFIXES: .fig .png
14
15all: gen
16
17upload: $(DL) $(GEN)
18    rsync -e ssh index.html $(DL) $(GEN) \
19      www-data@downloads.qi-hardware.com:werner/labsw/web/
20
21gen: $(GEN)
22
23labsw-0-off.jpg:
24    wget $(SRC)/$@
25
26labsw-0-inside.jpg:
27    wget $(SRC)/$@
28
29labsw-m1-off.jpg:
30    wget $(SRC)/$@
31
32labsw-m1-boot.jpg:
33    wget $(SRC)/$@
34
35labsw-m1-render.jpg:
36    wget $(SRC)/$@
37
38.fig.png:
39    fig2dev -L png -S 4 -m 0.7 $< >$@ || { rm -f $@; exit 1; }
40
41labsw-0-off-small.jpg: labsw-0-off.jpg
42    convert $< -scale x240 $@
43
44labsw-0-inside-small.jpg: labsw-0-inside.jpg
45    convert $< -scale x240 $@
46
47labsw-m1-off-small.jpg: labsw-m1-off.jpg
48    convert $< -scale x300 $@
49
50labsw-m1-boot-small.jpg: labsw-m1-boot.jpg
51    convert $< -scale x300 $@
52
53labsw-m1-render-small.jpg: labsw-m1-render.jpg
54    convert $< -scale x300 $@
55
56clean:
57    rm -f $(GEN)
58
59spotless: clean
60    rm -f $(DL)
61

Archive Download this file

Branches:
master



interactive