all: Presentation.pdf REPEAT_TEXT = 'Rerun to get cross-references right' %.pdf: %.dvi dvipdf $(basename $@) %.ps: %.svg inkscape $(addsuffix .svg,$(basename $@)) --export-ps=$@ Presentation.dvi: *.tex beamerthemerecore.sty images/*.ps latex '\scrollmode\input $(basename $@)' || exit 1; \ latex '\scrollmode\input $(basename $@)' || exit 1; \ while grep -s $(REPEAT_TEXT) $(addsuffix .log,$(basename $@)) ; do \ latex '\scrollmode\input $(basename $@)' || exit 1; \ done clean: rm -f *.ps *.pdf *.dvi *.log *.toc *.out *.aux *.bbl *.blg *.lof *.nav *.snm