Root/fisl2012/Makefile

Source at commit b81ee8a246b2bd03800b5808119712fa615c5acd created 7 years 4 months ago.
By Werner Almesberger, fisl2012/Makefile: fix printing
1SHELL=/bin/bash
2
3#DL=USB.png Nano_cola.jpg Atben_atusb_prod_03.jpg Atben_atusb_prod_05.jpg \
4# M1_dmx_video.jpg \
5# UBB_production_08.JPG ubb-vga-pub-plugged-medium.jpg \
6# ubb-vga-pub-1024-medium.jpg SIE_KICAD.png
7#GEN=schhist.png fped.png kicad.png achieve.pdf flow.pdf
8GEN=cat-comp.pdf cat-mod.pdf
9#PNG=atusb-front.png
10
11.PHONY: spotless clean upload upload-es
12
13all: talk.pdf
14        xpdf talk.pdf
15
16talk.pdf: talk.tex $(GEN) $(DL) $(PNG)
17        pdflatex talk
18
19kicad.png: eeschema.xwd pcbnew.xwd
20        pnmcomp -xoff=0 -yoff=300 \
21          <(convert eeschema.xwd ppm:-) \
22          <(convert pcbnew.xwd ppm:- | \
23            pnmpad -white -left=900 -bottom=300) | \
24          convert - $@
25
26schhist.png: schhist.xwd
27        convert $< $@
28
29fped.png: fped.xwd
30        convert $< $@
31
32USB.png:
33        wget http://projects.qi-hardware.com/schhist/atusb/847b3546d90d7271690bcd17014cf2cae9482538/diff/USB.png
34
35Nano_cola.jpg:
36        wget http://en.qi-hardware.com/w/images/7/78/Nano_cola.jpg
37
38Atben_atusb_prod_03.jpg:
39        wget http://en.qi-hardware.com/w/images/0/06/Atben_atusb_prod_03.jpg
40
41Atben_atusb_prod_05.jpg:
42        wget http://en.qi-hardware.com/w/images/c/ce/Atben_atusb_prod_05.jpg
43
44M1_dmx_video.jpg:
45        wget http://en.qi-hardware.com/w/images/5/55/M1_dmx_video.jpg
46
47UBB_production_08.JPG:
48        wget http://en.qi-hardware.com/w/images/8/83/UBB_production_08.JPG
49
50ubb-vga-pub-plugged-medium.jpg:
51        wget http://downloads.qi-hardware.com/people/werner/ubb/vga/web/ubb-vga-pub-plugged-medium.jpg
52
53ubb-vga-pub-1024-medium.jpg:
54        wget http://downloads.qi-hardware.com/people/werner/ubb/vga/web/ubb-vga-pub-1024-medium.jpg
55
56SIE_KICAD.png:
57    wget http://linuxencaja.com/images/9/9d/SIE_KICAD.png
58
59achieve.pdf: achieve.fig
60        fig2dev -L pdf $< $@
61
62cat-comp.pdf: cat-comp.fig
63        fig2dev -L pdf $< $@
64
65cat-mod.pdf: cat-mod.fig
66        fig2dev -L pdf $< $@
67
68talk.ps: talk.pdf
69        pdftops -paper A4 -expand $< $@
70
71p8: talk.ps
72        mpage -8 $< | lpr
73
74spotless:
75        rm -f $(DL)
76
77clean:
78        rm -f $(GEN) talk.ps
79
80upload: talk.pdf
81        qippl talk.pdf fisl13.pdf
82

Archive Download this file

Branches:
master



interactive