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