all: figures
	pdflatex -jobname=thesis main.tex
	makeglossaries thesis
	biber thesis.bcf
	pdflatex -jobname=thesis main.tex
	pdflatex -jobname=thesis main.tex
	rm -f *.bbl *.blg *.log *.aux *.toc *.out *.bcf *.run.xml *.acn *.acr *.alg *.glg *.glo *.gls *.ist

clean:
	rm -f *.bbl *.blg *.log *.aux *.toc *.out *.bcf *.run.xml *.acn *.acr *.alg *.glg *.glo *.gls *.ist

figures:
	cd figures; . venv/bin/activate; python3 generate_figures.py

.PHONY: all figures