.PHONY: default NAME=Masterarbeit LAST_EXPORT=`cat LAST_EXPORT` default: cleanall render render: mkdir build pdflatex -output-directory build ${NAME}.tex bibtex build/${NAME} pdflatex -output-directory build ${NAME}.tex pdflatex -output-directory build ${NAME}.tex diff: cd build; git-latexdiff $(LAST_EXPORT) -- --main ${NAME}.tex --no-flatten -o diff.pdf; cd .. clean: cd build; rm -v *.aux *.bbl *.blg *.log *.out *.toc cleanall: rm -rfv build viewer: okular build/${NAME}.pdf show: cleanall render viewer release: cleanall render clean