Make default target work in Makefile

This commit is contained in:
Jan Philipp Timme 2018-09-03 10:45:10 +02:00
parent c56ad2da2a
commit 48fbea553c
1 changed files with 10 additions and 3 deletions

View File

@ -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