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