diff --git a/Makefile b/Makefile index f2cc083..eafddc8 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ -.PHONY: clean, render +.PHONY: default NAME=Masterarbeit LAST_EXPORT=`cat LAST_EXPORT` +default: cleanall render + render: mkdir build pdflatex -output-directory build ${NAME}.tex @@ -14,9 +16,14 @@ 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 -show: +viewer: okular build/${NAME}.pdf -all: clean render show +show: cleanall render viewer + +release: cleanall render clean \ No newline at end of file