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