latex=xelatex
pdflatex=xelatex
bibtex=bibtex 

chapters=chapters/introduction.tex \
		   chapters/quantum_computing.tex \
		   chapters/stabilizer.tex \
		   chapters/implementation.tex \
		   chapters/conclusion.tex \
		   chapters/appendix.tex

cover=cover.png
graphics=graphics/graph_high_linear_regime.png \
		 graphics/graph_high_linear_regime_cut.png \
		 graphics/graph_intermediate_regime.png \
		 graphics/graph_intermediate_regime_cut.png \
		 graphics/graph_low_linear_regime.png

other=extra_benchmark/benchmark.py

all: main.pdf

main.pdf: main.tex main.bib $(cover) $(chapters) $(graphics) $(other)
	$(latex) main
	$(bibtex) main
	$(latex) main
	$(pdflatex) main

	
clean:
	-rm main.aux
	-rm main.blg
	-rm main.dvi
	-rm main.log
	-rm main.out
	-rm main.pdf
	-rm main.toc
	-rm main.bbl
