23 lines
434 B
Makefile
23 lines
434 B
Makefile
.PHONY: clean, render
|
|
|
|
NAME=Masterarbeit
|
|
LAST_EXPORT=`cat LAST_EXPORT`
|
|
|
|
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:
|
|
rm -rfv build
|
|
|
|
show:
|
|
okular build/${NAME}.pdf
|
|
|
|
all: clean render show
|