chiark / gitweb /
talk.txt
[talk-2015-debconf-dgit.git] / Makefile
1
2 SLIDES+= title
3 SLIDES+= manpage
4 SLIDES+= data-flow
5 SLIDES+= nmu-linear
6 SLIDES+= nmu-basic
7 SLIDES+= nmu-compare
8 SLIDES+= data-flow
9 SLIDES+= dflow-equal
10 SLIDES+= data-flow
11 SLIDES+= dflow-equal
12 SLIDES+= manpage
13 SLIDES+= manpage-clean
14 SLIDES+= future
15
16 SLIDEFILES=$(addsuffix .ps, $(SLIDES))
17
18 o= >$@.new && mv -f $@.new $@
19
20 all:    slides.pdf
21
22 %.ps:   %.fig
23         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
24         # wtf!
25         LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 <$@.1 $o
26
27 %.eps:   %.fig
28         iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
29         # wtf!
30         LC_CTYPE=en_GB fig2dev -L eps <$@.1 $o
31
32 manpage.ps: dgit.1-manpage Makefile
33         man -Tps -l $< >$@.1
34         pstops -pa3 '100:0@1.7(-4cm,-47cm)' <$@.1 >$@.2
35         ps2pdf -sPAPERSIZE=a3 $@.2 $@.3
36         pdfcrop --bbox '0 0 841 595' $@.3 $@.4
37         pdf2ps $@.3 $@.4
38         pstops -pa3 '0L(21cm,0cm)' <$@.4 >$@.5
39         pstops -pa4 '0(0cm,0cm)' <$@.5 >$@
40
41 manpage-clean.ps: dgit.1-manpage Makefile
42         man -Tps -l $< >$@.1
43         pstops -pa3 '100:3@1.7(-4cm,-43cm)' <$@.1 >$@.2
44         ps2pdf -sPAPERSIZE=a3 $@.2 $@.3
45         pdfcrop --bbox '0 0 841 595' $@.3 $@.4
46         pdf2ps $@.3 $@.4
47         pstops -pa3 '0L(21cm,0cm)' <$@.4 >$@.5
48         pstops -pa4 '0(0cm,0cm)' <$@.5 >$@
49
50 nmu-compare.ps: my-history-inc.eps
51
52 %.txt.eps: %.txt ./txt2ps
53         ./txt2ps <$< |ps2eps -s a3 $o
54
55 %.ps:   %.lout
56         lout $< $o
57
58 slides.ps: $(SLIDEFILES) Makefile
59         cat $(SLIDEFILES) $o
60
61 slides.pdf:     slides.ps Makefile
62         ps2pdf $< $@
63
64 install: slides.pdf talk.txt
65         rsync -vP $^ ijackson@chiark:public-html/2015/debconf-dgit-talk/
66         git push ijackson@chiark:public-git/talk-2015-debconf-dgit.git