SLIDES+= intro SLIDES+= mm0 SLIDES+= mm SLIDES+= borrow-mut SLIDES+= dangling SLIDES+= borrow-nonmut SLIDES+= bck-lifetimes SLIDES+= macros 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 mm0.ps: mm.fig iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1 LC_CTYPE=en_GB fig2dev -L ps -l dummy -z A4 -D-60 <$@.1 $o bck-lifetimes.ps: bck-err.txt.eps macros.ps: serde-example.txt.eps macro-rules-example.txt.eps borrow-mut.ps: borrow-mut-example.txt.eps dangling.ps: dangling.txt.eps dangling-err.txt.eps borrow-nonmut.ps: borrow-nonmut.txt.eps borrow-nonmut-error.txt.eps %.eps: %.fig iconv <$< >$@.1 -f UTF-8 -t ISO-8859-1 # wtf! LC_CTYPE=en_GB fig2dev -L eps <$@.1 $o %.txt.eps: %.txt ./txt2ps ./txt2ps <$< |ps2eps -s a3 $o %.ps: %.lout lout $< $o slides.ps: $(SLIDEFILES) Makefile cat $(SLIDEFILES) $o %.pdf: %.ps Makefile ps2pdf $< $@ talk.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 mount $(usb) cp $^ $(usb)/. umount $(usb)