[TASK] Add diff command to Makefile.

This commit is contained in:
Jan Philipp Timme 2016-07-09 14:19:51 +02:00
parent 4b17472486
commit 45f63fd37f

View File

@ -1,6 +1,7 @@
.PHONY: clean, render .PHONY: clean, render
NAME=Bachelorarbeit NAME=Bachelorarbeit
LAST_EXPORT=`cat LAST_EXPORT`
render: render:
pdflatex ${NAME}.tex pdflatex ${NAME}.tex
@ -8,6 +9,9 @@ render:
pdflatex ${NAME}.tex pdflatex ${NAME}.tex
pdflatex ${NAME}.tex pdflatex ${NAME}.tex
diff:
git-latexdiff $(LAST_EXPORT) -- --main Bachelorarbeit.tex --no-flatten -o diff.pdf
clean: clean:
rm -f *.aux *.bbl *.blg *.dvi *.log *.lol *.lot *.lof *.toc *.out *.synctex.gz *.bak rm -f *.aux *.bbl *.blg *.dvi *.log *.lol *.lot *.lof *.toc *.out *.synctex.gz *.bak
rm -f *.pdf rm -f *.pdf