From 48fbea553cc77037869629b4f88e767a349eb4b9 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Mon, 3 Sep 2018 10:45:10 +0200 Subject: [PATCH] Make default target work in Makefile --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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