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