chiark / gitweb /
adjust for printing
[talk-2018-dc18-gdr.git] / Makefile
index b6f81bd610bf18dbc9801dfba1f2e74791f00f65..9521c7784e141a06d580968e46724115b58346f0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,9 @@ SLIDES+= usp-2
 SLIDES+= usp-3
 SLIDES+= dm-1
 SLIDES+= dm-2
+SLIDES+= dm-rebasing
 SLIDES+= dm-3
+SLIDES+= dm-pre-newups
 SLIDES+= dm-5
 SLIDES+= dm-6
 SLIDES+= dm-zoom # made from 6
@@ -15,6 +17,7 @@ SLIDES+= dm-pre-wreck
 SLIDES+= dm-wreck # made from 4
 SLIDES+= dm-post-wreck
 SLIDES+= dm-6
+SLIDES+= refs
 # dm-for-zoom is made from 6
 #SLIDES+= manpage
 
@@ -42,7 +45,7 @@ SLIDEFILES=$(addsuffix .ps, $(SLIDES))
 
 o= >$@.new && mv -f $@.new $@
 
-all:   slides.pdf talk.ps
+all:   slides.pdf talk.ps demo.ps
 
 %.ps:   %.fig
        iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
@@ -55,6 +58,10 @@ dm-%.ps: dm.fig
        iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
        LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+110:1$*9,2$*0:2$*9 <$@.1 $o
 
+dm-rebasing.ps: dm.fig helm-rebase-crop.ppm
+       iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
+       LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+24,110:129,220:229 <$@.1 $o
+
 dm-rebase-again.ps: dm.fig conflict.txt.eps
        ./greyout <$< >$@.fig.tmp
        iconv <$@.fig.tmp >$@.1 -f UTF-8 -t ISO-8859-1
@@ -72,10 +79,17 @@ dm-post-wreck.ps: dm.fig conflict.txt.eps
        iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
        LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+4,5,110:139,144:145,230:232,235:239 <$@.1 $o
 
+dm-pre-newups.ps: dm.fig conflict.txt.eps
+       iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
+       LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+110:139,144:145,230:232,235:239 <$@.1 $o
+
 dm-wreck.ps: dm.fig conflict.txt.eps
        iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
        LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D+1:3,5,144:145,153,+110:149,240:249 <$@.1 $o
 
+helm-rebase-crop.ppm: helm-rebase.png Makefile
+       pngtopnm <$< | pnmcut -right 550 -bottom 300 >$@
+
 %.eps:   %.fig
        iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1
        # wtf!
@@ -86,26 +100,6 @@ dm-for-zoom.eps: dm.fig
        # wtf!
        LC_CTYPE=en_GB fig2dev -L eps -D+110:118,120:169,260:268  <$@.1 $o
 
-manpage.ps: dgit.1-manpage Makefile
-       man -Tps -l $< >$@.1
-       pstops -pa3 '100:0@1.7(-4cm,-47cm)' <$@.1 >$@.2
-       ps2pdf -sPAPERSIZE=a3 $@.2 $@.3
-       pdfcrop --bbox '0 0 841 595' $@.3 $@.4
-       pdf2ps $@.3 $@.4
-       pstops -pa3 '0L(21cm,0cm)' <$@.4 >$@.5
-       pstops -pa4 '0(0cm,0cm)' <$@.5 >$@
-
-manpage-clean.ps: dgit.1-manpage Makefile
-       man -Tps -l $< >$@.1
-       pstops -pa3 '100:3@1.7(-4cm,-43cm)' <$@.1 >$@.2
-       ps2pdf -sPAPERSIZE=a3 $@.2 $@.3
-       pdfcrop --bbox '0 0 841 595' $@.3 $@.4
-       pdf2ps $@.3 $@.4
-       pstops -pa3 '0L(21cm,0cm)' <$@.4 >$@.5
-       pstops -pa4 '0(0cm,0cm)' <$@.5 >$@
-
-nmu-compare.ps: my-history-inc.eps
-
 %.txt.eps: %.txt ./txt2ps
        ./txt2ps <$< |ps2eps -s a3 $o
 
@@ -115,12 +109,20 @@ nmu-compare.ps: my-history-inc.eps
 slides.ps: $(SLIDEFILES) Makefile
        cat $(SLIDEFILES) $o
 
-slides.pdf:     slides.ps Makefile
+%.pdf:     %.ps Makefile
        ps2pdf $< $@
 
-talk.ps: talk.txt
-       a2ps -1 -o $@ -B talk.txt
+talk.ps demo.ps: %.ps: %.txt Makefile
+       a2ps -1 -o $@.1.tmp -B $<
+       pstops <$@.1.tmp >$@ '0@0.94(7mm,7.5mm)'
+
+usb=/media/usb1
+
+for-printing: talk.pdf demo.pdf
+       mount $(usb)
+       cp $^ $(usb)/.
+       umount $(usb)
 
 install: slides.pdf talk.txt
-       rsync -vP $^ ijackson@chiark:public-html/2015/debconf-dgit-talk/
-       git push ijackson@chiark:public-git/talk-2015-debconf-dgit.git
+       rsync -vP $^ ijackson@chiark:public-html/2018/debconf-gdr-talk/
+       git push ijackson@chiark:public-git/talk-2018-dc18-gdr.git