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