LaTex:=pdflatex
Biber:=biber
Thesis:=MarshallPhD

thesis: $(Thesis).pdf

.PHONY: thesis biber latex all clean open

biber:
	$(Biber) $(Thesis).bcf
	$(LaTex) $(Thesis).tex

latex:
	$(LaTex) $(Thesis).tex

all:
	$(LaTex) $(Thesis).tex
	$(Biber) $(Thesis).bcf
	$(LaTex) $(Thesis).tex
	$(LaTex) $(Thesis).tex

clean:
	rm *.{aux,bbl,bcf,blg,lof,log,lot,nav,o,out,run.xml,snm,synctex.gz,toc,fdb_latexmk,fls}

open:
	open $(Thesis).pdf

$(Thesis).pdf : $(Thesis).tex 0Front/abstract.tex \
				1Intro/1Theory/Minkowski.tex 1Intro/2Theory/Lattice.tex 1Intro/3Lattice/Methods.tex \
				1Intro/4Lattice/SemiLep.tex 1Intro/5ChiPT/ChiPT.tex \
				2Study/InterpOp.tex 3/PerEnsemble.tex 4/GlobalFit.tex 5/Conclusion.tex
	$(LaTex) $(Thesis).tex
