2011-05-07 10:46:43 +03:00
|
|
|
SCHHIST=../../../eda-tools/schhist
|
|
|
|
SCHPS2PPM=$(SCHHIST)/schps2ppm
|
|
|
|
NORMALIZESCHPS=$(SCHHIST)/normalizeschps
|
|
|
|
|
|
|
|
SRC=http://downloads.qi-hardware.com/people/werner/ubb/vga
|
|
|
|
|
|
|
|
DL=ubb-vga-pub-1024.jpg ubb-vga-pub-plugged.jpg ubb-vga-pub-v2.jpg
|
2011-05-07 15:49:39 +03:00
|
|
|
GEN= ubb-vga-pub-1024-small.jpg ubb-vga-pub-1024-medium.jpg \
|
|
|
|
ubb-vga-pub-plugged-small.jpg ubb-vga-pub-plugged-medium.jpg \
|
|
|
|
ubb-vga-pub-v2-small.jpg ubb-vga-pub-v2-medium.jpg \
|
2011-05-07 10:46:43 +03:00
|
|
|
ubb-vga-schem.png ubb-vga-schem-small.png
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: upload gen clean spotless
|
|
|
|
|
|
|
|
|
|
|
|
upload: $(DL) $(GEN)
|
|
|
|
rsync -e ssh index.html $(DL) $(GEN) \
|
|
|
|
www-data@downloads.qi-hardware.com:werner/ubb/vga/web/
|
|
|
|
|
|
|
|
gen: $(GEN)
|
|
|
|
|
|
|
|
ubb-vga-schem.png: ../ubb-vga.ps
|
|
|
|
$(NORMALIZESCHPS) -w 120 $< | \
|
|
|
|
$(SCHPS2PPM) | \
|
|
|
|
pnmcrop | convert ppm:- $@ || { rm -f $@; }
|
|
|
|
|
|
|
|
ubb-vga-pub-1024.jpg:
|
|
|
|
wget $(SRC)/$@
|
|
|
|
|
|
|
|
ubb-vga-pub-v2.jpg:
|
|
|
|
wget $(SRC)/$@
|
|
|
|
|
|
|
|
ubb-vga-pub-plugged.jpg:
|
|
|
|
wget $(SRC)/$@
|
|
|
|
|
|
|
|
ubb-vga-pub-1024-small.jpg: ubb-vga-pub-1024.jpg
|
|
|
|
convert $< -scale x240 $@
|
|
|
|
|
|
|
|
ubb-vga-pub-v2-small.jpg: ubb-vga-pub-v2.jpg
|
|
|
|
convert $< -scale x240 $@
|
|
|
|
|
|
|
|
ubb-vga-pub-plugged-small.jpg: ubb-vga-pub-plugged.jpg
|
|
|
|
convert $< -scale x240 $@
|
|
|
|
|
2011-05-07 15:49:39 +03:00
|
|
|
ubb-vga-pub-1024-medium.jpg: ubb-vga-pub-1024.jpg
|
|
|
|
convert $< -resize 1024x768 $@
|
|
|
|
|
|
|
|
ubb-vga-pub-v2-medium.jpg: ubb-vga-pub-v2.jpg
|
|
|
|
convert $< -resize 1024x768 $@
|
|
|
|
|
|
|
|
ubb-vga-pub-plugged-medium.jpg: ubb-vga-pub-plugged.jpg
|
|
|
|
convert $< -resize 1024x768 $@
|
|
|
|
|
2011-05-07 10:46:43 +03:00
|
|
|
ubb-vga-schem-small.png: ubb-vga-schem.png
|
|
|
|
convert $< -scale '40%' $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(GEN)
|
|
|
|
|
|
|
|
spotless: clean
|
|
|
|
rm -f $(DL)
|