Root/ubb-vga/web/Makefile

1SCHHIST=../../../eda-tools/schhist
2SCHPS2PPM=$(SCHHIST)/schps2ppm
3NORMALIZESCHPS=$(SCHHIST)/normalizeschps
4
5SRC=http://downloads.qi-hardware.com/people/werner/ubb/vga
6
7DL=ubb-vga-pub-1024.jpg ubb-vga-pub-plugged.jpg ubb-vga-pub-v2.jpg
8GEN= ubb-vga-pub-1024-small.jpg ubb-vga-pub-1024-medium.jpg \
9    ubb-vga-pub-plugged-small.jpg ubb-vga-pub-plugged-medium.jpg \
10    ubb-vga-pub-v2-small.jpg ubb-vga-pub-v2-medium.jpg \
11    ubb-vga-schem.png ubb-vga-schem-small.png
12
13
14.PHONY: upload gen clean spotless
15
16
17upload: $(DL) $(GEN)
18    rsync -e ssh index.html $(DL) $(GEN) \
19      www-data@downloads.qi-hardware.com:werner/ubb/vga/web/
20
21gen: $(GEN)
22
23ubb-vga-schem.png: ../ubb-vga.ps
24    $(NORMALIZESCHPS) -w 120 $< | \
25      $(SCHPS2PPM) | \
26      pnmcrop | convert ppm:- $@ || { rm -f $@; }
27
28ubb-vga-pub-1024.jpg:
29    wget $(SRC)/$@
30
31ubb-vga-pub-v2.jpg:
32    wget $(SRC)/$@
33
34ubb-vga-pub-plugged.jpg:
35    wget $(SRC)/$@
36
37ubb-vga-pub-1024-small.jpg: ubb-vga-pub-1024.jpg
38    convert $< -scale x240 $@
39
40ubb-vga-pub-v2-small.jpg: ubb-vga-pub-v2.jpg
41    convert $< -scale x240 $@
42
43ubb-vga-pub-plugged-small.jpg: ubb-vga-pub-plugged.jpg
44    convert $< -scale x240 $@
45
46ubb-vga-pub-1024-medium.jpg: ubb-vga-pub-1024.jpg
47    convert $< -resize 1024x768 $@
48
49ubb-vga-pub-v2-medium.jpg: ubb-vga-pub-v2.jpg
50    convert $< -resize 1024x768 $@
51
52ubb-vga-pub-plugged-medium.jpg: ubb-vga-pub-plugged.jpg
53    convert $< -resize 1024x768 $@
54
55ubb-vga-schem-small.png: ubb-vga-schem.png
56    convert $< -scale '40%' $@
57
58clean:
59    rm -f $(GEN)
60
61spotless: clean
62    rm -f $(DL)
63

Archive Download this file

Branches:
master



interactive