From d823f65e4660cb93bf9362f8e756ac36a242b5b7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 4 Aug 2011 18:52:40 +0200 Subject: Initial commit --- slides/Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 slides/Makefile (limited to 'slides/Makefile') 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 -- cgit v1.2.3-54-g00ecf