Make default target work in Makefile
This commit is contained in:
parent
c56ad2da2a
commit
48fbea553c
13
Makefile
13
Makefile
|
@ -1,8 +1,10 @@
|
||||||
.PHONY: clean, render
|
.PHONY: default
|
||||||
|
|
||||||
NAME=Masterarbeit
|
NAME=Masterarbeit
|
||||||
LAST_EXPORT=`cat LAST_EXPORT`
|
LAST_EXPORT=`cat LAST_EXPORT`
|
||||||
|
|
||||||
|
default: cleanall render
|
||||||
|
|
||||||
render:
|
render:
|
||||||
mkdir build
|
mkdir build
|
||||||
pdflatex -output-directory build ${NAME}.tex
|
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 ..
|
cd build; git-latexdiff $(LAST_EXPORT) -- --main ${NAME}.tex --no-flatten -o diff.pdf; cd ..
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
cd build; rm -v *.aux *.bbl *.blg *.log *.out *.toc
|
||||||
|
|
||||||
|
cleanall:
|
||||||
rm -rfv build
|
rm -rfv build
|
||||||
|
|
||||||
show:
|
viewer:
|
||||||
okular build/${NAME}.pdf
|
okular build/${NAME}.pdf
|
||||||
|
|
||||||
all: clean render show
|
show: cleanall render viewer
|
||||||
|
|
||||||
|
release: cleanall render clean
|
Loading…
Reference in New Issue