Index: doc/theses/rob_schluntz/Makefile
===================================================================
--- doc/theses/rob_schluntz/Makefile	(revision 728df66bde6df9b1ca4ad068be30ea89605f46a3)
+++ doc/theses/rob_schluntz/Makefile	(revision 09928490678e146befd5d185f92f38d99e9431b3)
@@ -1,17 +1,25 @@
-TeXLIB = .:../LaTeXmacros:../bibliography/:
-LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && pdflatex -halt-on-error
+Build = build
+Macros = ../../LaTeXmacros
+TeXLIB = .:${Macros}:${Build}:../../bibliography:
+LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && pdflatex -halt-on-error -output-directory=${Build}
 BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
+
+VPATH = ${Build}
 
 all : thesis.pdf
 
-thesis.pdf : Makefile ../LaTeXmacros/common.tex cfa-format.tex thesis.tex intro.tex ctordtor.tex tuples.tex variadic.tex conclusions.tex
+thesis.pdf : Makefile ${Build} ${Macros}/common.tex cfa-format.tex thesis.tex intro.tex ctordtor.tex tuples.tex variadic.tex conclusions.tex
 	${LaTeX} thesis
-	${BibTeX} thesis
+	${BibTeX} ${Build}/thesis
 	${LaTeX} thesis
 	${LaTeX} thesis
+	cp -p ${Build}/thesis.pdf .
 	pdf2ps thesis.pdf thesis.ps
 
+${Build}:
+	mkdir -p ${Build}
+
 clean :
-	rm -f *.aux *.bbl *.blg *.lof *.log *.lot *.out *.toc
+	@rm -frv ${Build}
 
 spotless : clean
