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