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