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