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