chiark / gitweb /
adjust re node.js ishness
[talk-2019-ghm-rust.git] / Makefile
1
2 # A
3 SLIDES+= intro
4
5 # B
6 SLIDES+= mm0
7 SLIDES+= mm
8 SLIDES+= borrow-mut
9 SLIDES+= dangling
10 SLIDES+= borrow-nonmut
11
12 # C
13 SLIDES+= tour-61
14 SLIDES+= tour-62
15 SLIDES+= tour-63
16 SLIDES+= tourx-71
17 SLIDES+= tourx-72
18
19 # D
20 SLIDES+= c-v-rust
21 SLIDES+= stability-slide
22 SLIDES+= borrow-errormsg
23 SLIDES+= coc-slide
24
25 # E
26 SLIDES+= bck-lifetimes
27 SLIDES+= macros
28 SLIDES+= cargo
29 SLIDES+= otherproblems
30
31 # F
32 SLIDES+= conclusion
33
34 SLIDEFILES=$(addsuffix .ps, $(SLIDES))
35
36 o= >$@.new && mv -f $@.new $@
37
38 all:    slides.pdf talk.ps
39
40 %.ps:   %.fig
41         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
42         # wtf!
43         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4  <$@.1 $o
44
45 mm0.ps: mm.fig
46         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
47         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D-60 <$@.1 $o
48
49 bck-lifetimes.ps: bck-err.txt.eps
50 macros.ps: serde-example.txt.eps macro-rules-example.txt.eps
51 borrow-mut.ps: borrow-mut-example.txt.eps
52 dangling.ps: dangling.txt.eps dangling-err.txt.eps
53 borrow-nonmut.ps borrow-errormsg.ps: borrow-nonmut.txt.eps borrow-nonmut-error.txt.eps
54 cargo.ps: cargo-nonconfig.txt.eps
55
56 tour-main.ps: tour-example.txt.eps
57
58 tour-%.ps: tour-main.fig tour-example.txt.eps Makefile
59         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
60         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+1:59,$*,80:99,300:999 <$@.1 $o
61
62 tourx-%.ps: tour-main.fig unsafe-example.txt.eps ffi-example.txt.eps ffi-example-cpp.txt.eps Makefile
63         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
64         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+1:59,$*,80:89,91:99,300:999,1$*,2$* <$@.1 $o
65
66 %.eps:   %.fig
67         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
68         # wtf!
69         LC_CTYPE=en_GB fig2dev -L eps <$@.1 $o
70
71 %.txt.eps: %.txt ./txt2ps
72         ./txt2ps <$< |ps2eps -s a3 $o
73
74 %.ps:   %.lout
75         lout $< $o
76
77 slides.ps: $(SLIDEFILES) Makefile
78         cat $(SLIDEFILES) $o
79
80 %.pdf:     %.ps Makefile
81         ps2pdf $< $@
82
83 talk.ps: %.ps: %.txt Makefile
84         a2ps -1 -f12.5 -o $@.1.tmp -B $<
85         pstops <$@.1.tmp >$@ '0@0.94(7mm,7.5mm)'
86
87 usb=/media/usb1
88
89 for-printing: talk.pdf
90         mount $(usb)
91         cp $^ $(usb)/.
92         umount $(usb)