From: Ian Jackson Date: Fri, 27 Jul 2018 12:27:11 +0000 (+0100) Subject: wip Makefile X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=0fab9e9895a6363cddd9de7c3f2bbae402086835;p=talk-2018-dc18-gdr.git wip Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b8e0ea0 --- /dev/null +++ b/Makefile @@ -0,0 +1,66 @@ + +SLIDES+= dm-1 +SLIDES+= dm-2 +SLIDES+= dm-3 +SLIDES+= dm-4 +SLIDES+= dm-5 +#SLIDES+= manpage + +SLIDEFILES=$(addsuffix .ps, $(SLIDES)) + +o= >$@.new && mv -f $@.new $@ + +all: slides.pdf talk.ps + +%.ps: %.fig + iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1 + # wtf! + LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 <$@.1 $o + +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+1:$*9 <$@.1 $o + +%.eps: %.fig + iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1 + # wtf! + LC_CTYPE=en_GB fig2dev -L eps <$@.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 + +%.ps: %.lout + lout $< $o + +slides.ps: $(SLIDEFILES) Makefile + cat $(SLIDEFILES) $o + +slides.pdf: slides.ps Makefile + ps2pdf $< $@ + +talk.ps: talk.txt + a2ps -1 -o $@ -B talk.txt + +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