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