main.pdf:
	make chapters.tex
	pdflatex -synctex=1 -interaction=nonstopmode main.tex
	
chapters.tex:
	./generate-chapters.sh