chiark / gitweb /
slides/talk
[talk-2018-dc18-gdr.git] / Makefile
1
2 SLIDES+= dm-1
3 SLIDES+= dm-2
4 SLIDES+= dm-3
5 SLIDES+= dm-5
6 SLIDES+= dm-6
7 SLIDES+= dm-rebase-again # made from 7
8 SLIDES+= dm-pre-wreck
9 SLIDES+= dm-wreck # made from 4
10 SLIDES+= dm-post-wreck
11 #SLIDES+= manpage
12
13 # layers
14 #    X0    text
15 #    X1    circles
16 #    X2    edges
17 #    X3    edges (53 is included in wreck)
18 #   1X0-9  "master" note
19 #   1X3    not included in pre-wreck
20 #   151    included in rebase-again
21 # for
22 #    X =
23 #      1      [1]
24 #      2      [2]
25 #      3      [3]
26 #      5      [4]
27 #      6      [5]
28
29
30 SLIDEFILES=$(addsuffix .ps, $(SLIDES))
31
32 o= >$@.new && mv -f $@.new $@
33
34 all:    slides.pdf talk.ps
35
36 %.ps:   %.fig
37         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
38         # wtf!
39         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4  <$@.1 $o
40
41 dm-%.ps: dm.fig
42         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
43         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+10:$*9,1$*0:1$*9 <$@.1 $o
44
45 dm-rebase-again.ps: dm.fig conflict.txt.eps
46         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
47         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+10:79,151,170:179 <$@.1 $o
48
49 dm-pre-wreck.ps: dm.fig conflict.txt.eps
50         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
51         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+10:39,130:132,135:139 <$@.1 $o
52
53 dm-post-wreck.ps: dm.fig conflict.txt.eps
54         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
55         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+4,5,10:39,130:132,135:139 <$@.1 $o
56
57 dm-wreck.ps: dm.fig conflict.txt.eps
58         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
59         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+1:3,5,53,+10:49,140:149 <$@.1 $o
60
61 %.eps:   %.fig
62         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
63         # wtf!
64         LC_CTYPE=en_GB fig2dev -L eps <$@.1 $o
65
66 manpage.ps: dgit.1-manpage Makefile
67         man -Tps -l $< >$@.1
68         pstops -pa3 '100:0@1.7(-4cm,-47cm)' <$@.1 >$@.2
69         ps2pdf -sPAPERSIZE=a3 $@.2 $@.3
70         pdfcrop --bbox '0 0 841 595' $@.3 $@.4
71         pdf2ps $@.3 $@.4
72         pstops -pa3 '0L(21cm,0cm)' <$@.4 >$@.5
73         pstops -pa4 '0(0cm,0cm)' <$@.5 >$@
74
75 manpage-clean.ps: dgit.1-manpage Makefile
76         man -Tps -l $< >$@.1
77         pstops -pa3 '100:3@1.7(-4cm,-43cm)' <$@.1 >$@.2
78         ps2pdf -sPAPERSIZE=a3 $@.2 $@.3
79         pdfcrop --bbox '0 0 841 595' $@.3 $@.4
80         pdf2ps $@.3 $@.4
81         pstops -pa3 '0L(21cm,0cm)' <$@.4 >$@.5
82         pstops -pa4 '0(0cm,0cm)' <$@.5 >$@
83
84 nmu-compare.ps: my-history-inc.eps
85
86 %.txt.eps: %.txt ./txt2ps
87         ./txt2ps <$< |ps2eps -s a3 $o
88
89 %.ps:   %.lout
90         lout $< $o
91
92 slides.ps: $(SLIDEFILES) Makefile
93         cat $(SLIDEFILES) $o
94
95 slides.pdf:     slides.ps Makefile
96         ps2pdf $< $@
97
98 talk.ps: talk.txt
99         a2ps -1 -o $@ -B talk.txt
100
101 install: slides.pdf talk.txt
102         rsync -vP $^ ijackson@chiark:public-html/2015/debconf-dgit-talk/
103         git push ijackson@chiark:public-git/talk-2015-debconf-dgit.git