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