]> git.decadent.org.uk Git - dak.git/blobdiff - docs/talks/DebConf9/Makefile
website
[dak.git] / docs / talks / DebConf9 / Makefile
diff --git a/docs/talks/DebConf9/Makefile b/docs/talks/DebConf9/Makefile
new file mode 100644 (file)
index 0000000..39f2321
--- /dev/null
@@ -0,0 +1,28 @@
+# $Id: $
+
+LATEX = latex
+PDFLATEX = pdflatex
+DVIPS = dvips
+BIBTEX = bibtex
+PDFVIEW = xpdf -fullscreen
+
+SRC := $(shell egrep -l '^[^%]*\\begin\{document\}' *.tex)
+DVI = $(SRC:%.tex=%.dvi)
+PDF = $(SRC:%.tex=%.pdf)
+PS  = $(SRC:%.tex=%.ps)
+
+all: pdf
+
+$(PDF): %.pdf : %.tex
+       # call two time because of toc etc
+       @$(PDFLATEX) $<
+       @$(PDFLATEX) $<
+       @$(PDFLATEX) $<
+
+show:
+       $(PDFVIEW) $(PDF)
+
+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)