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