summaryrefslogtreecommitdiff
path: root/slides/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-08-04 18:52:40 +0200
committerTobias Klauser <tklauser@distanz.ch>2011-08-04 18:52:40 +0200
commitd823f65e4660cb93bf9362f8e756ac36a242b5b7 (patch)
treecf37baef955a5a53ff44d4a1d00bf2be8f3985fb /slides/Makefile
Initial commit
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