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