summaryrefslogtreecommitdiff
path: root/slides/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'slides/Makefile')
-rw-r--r--slides/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/slides/Makefile b/slides/Makefile
new file mode 100644
index 0000000..e662e33
--- /dev/null
+++ b/slides/Makefile
@@ -0,0 +1,30 @@
+LATEX = latex
+PDFLATEX = pdflatex
+DVIPS = dvips
+BIBTEX = bibtex
+
+SRC := $(shell egrep -l '^[^%]*\\begin\{document\}' *.tex)
+DVI = $(SRC:%.tex=%.dvi)
+PDF = $(SRC:%.tex=%.pdf)
+PS = $(SRC:%.tex=%.ps)
+
+all: pdf
+
+$(DVI): %.dvi : %.tex
+ # call two time because of toc etc
+ @$(LATEX) $<
+ @$(LATEX) $<
+
+$(PDF): %.pdf : %.tex
+ # call two time because of toc etc
+ @$(PDFLATEX) $<
+ @$(PDFLATEX) $<
+
+dvi: $(DVI)
+
+pdf: $(PDF)
+
+clean:
+ -rm -f $(DVI) $(PDF) $(DVI:%.dvi=%.aux) $(DVI:%.dvi=%.log) $(DVI:%.dvi=%.out) $(DVI:%.dvi=%.toc) $(DVI:%.dvi=%.nav) $(DVI:%.dvi=%.snm)
+ -rm -f *.vrb
+ -rm -f include/*.aux