Make the dvi file depend on the recore theme.
[matthijs/projects/internship.git] / Progress presentation / Makefile
1 all: Presentation.pdf
2
3 REPEAT_TEXT = 'Rerun to get cross-references right'
4
5 %.pdf: %.dvi
6         dvipdf $(basename $@)
7
8 %.ps: %.svg
9         inkscape $(addsuffix .svg,$(basename $@)) --export-ps=$@
10
11 Presentation.dvi: *.tex beamerthemerecore.sty
12         latex '\scrollmode\input $(basename $@)' || exit 1; \
13         while grep -s $(REPEAT_TEXT)  $(addsuffix .log,$(basename $@)) ; do \
14                 latex '\scrollmode\input $(basename $@)' || exit 1; \
15         done
16
17 clean:
18         rm -f *.ps *.pdf *.dvi *.log *.toc *.out *.aux *.bbl *.blg *.lof *.nav *.snm