Index: doc/theses/rob_schluntz/.gitignore
===================================================================
--- doc/theses/rob_schluntz/.gitignore	(revision 728df66bde6df9b1ca4ad068be30ea89605f46a3)
+++ doc/theses/rob_schluntz/.gitignore	(revision 23c27039d154516f4cb778bd20b2ac74a513ba2e)
@@ -1,17 +1,5 @@
 # generated by latex
-*.aux
-*.bbl
-*.blg
-*.brf
-*.dvi
-*.idx
-*.ilg
-*.ind
-*.log
-*.out
+build/*
 *.pdf
 *.ps
-*.toc
-*.lof
-*.lot
-*.synctex.gz
+
Index: doc/theses/rob_schluntz/Makefile
===================================================================
--- doc/theses/rob_schluntz/Makefile	(revision 728df66bde6df9b1ca4ad068be30ea89605f46a3)
+++ doc/theses/rob_schluntz/Makefile	(revision 23c27039d154516f4cb778bd20b2ac74a513ba2e)
@@ -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
Index: doc/theses/rob_schluntz/intro.tex
===================================================================
--- doc/theses/rob_schluntz/intro.tex	(revision 728df66bde6df9b1ca4ad068be30ea89605f46a3)
+++ doc/theses/rob_schluntz/intro.tex	(revision 23c27039d154516f4cb778bd20b2ac74a513ba2e)
@@ -290,5 +290,5 @@
 \end{cfacode}
 Every if- and iteration-statement in C compares the condition with @0@, and every increment and decrement operator is semantically equivalent to adding or subtracting the value @1@ and storing the result.
-Due to these rewrite rules, the values @0@ and @1@ have the types \zero and \one in \CFA, which allow for overloading various operations that connect to @0@ and @1@ \footnote{In the original design of \CFA, @0@ and @1@ were overloadable names \cite[p.~7]{cforall}.}.
+Due to these rewrite rules, the values @0@ and @1@ have the types \zero and \one in \CFA, which allow for overloading various operations that connect to @0@ and @1@ \footnote{In the original design of \CFA, @0@ and @1@ were overloadable names \cite[p.~7]{cforall-refrat}.}.
 The types \zero and \one have special built-in implicit conversions to the various integral types, and a conversion to pointer types for @0@, which allows standard C code involving @0@ and @1@ to work as normal.
 \begin{cfacode}
Index: doc/theses/rob_schluntz/thesis.tex
===================================================================
--- doc/theses/rob_schluntz/thesis.tex	(revision 728df66bde6df9b1ca4ad068be30ea89605f46a3)
+++ doc/theses/rob_schluntz/thesis.tex	(revision 23c27039d154516f4cb778bd20b2ac74a513ba2e)
@@ -288,5 +288,5 @@
 \addcontentsline{toc}{chapter}{\textbf{References}}
 
-\bibliography{cfa,thesis}
+\bibliography{pl,thesis}
 % Tip 5: You can create multiple .bib files to organize your references.
 % Just list them all in the \bibliogaphy command, separated by commas (no spaces).
