More Makefile flexibility

This commit is contained in:
Jan Philipp Timme 2018-09-12 17:01:15 +02:00
parent f8d79390fe
commit 585325c064
1 changed files with 2 additions and 4 deletions

View File

@ -5,17 +5,15 @@ CA_DOC_NAME="CA-DOC-Master"
LAST_EXPORT=`cat LAST_EXPORT` LAST_EXPORT=`cat LAST_EXPORT`
default: cleanall render_ma default: cleanall render_ma render_ca_doc
render_ma: render_ma:
mkdir build
pdflatex -output-directory build ${MA_NAME}.tex pdflatex -output-directory build ${MA_NAME}.tex
bibtex build/${MA_NAME} bibtex build/${MA_NAME}
pdflatex -output-directory build ${MA_NAME}.tex pdflatex -output-directory build ${MA_NAME}.tex
pdflatex -output-directory build ${MA_NAME}.tex pdflatex -output-directory build ${MA_NAME}.tex
render_ca_doc: render_ca_doc:
mkdir build
pdflatex -output-directory build ${CA_DOC_NAME}.tex pdflatex -output-directory build ${CA_DOC_NAME}.tex
#bibtex build/${CA_DOC_NAME} #bibtex build/${CA_DOC_NAME}
#pdflatex -output-directory build ${CA_DOC_NAME}.tex #pdflatex -output-directory build ${CA_DOC_NAME}.tex
@ -25,7 +23,7 @@ clean:
cd build; rm -v *.aux *.bbl *.blg *.log *.out *.toc cd build; rm -v *.aux *.bbl *.blg *.log *.out *.toc
cleanall: cleanall:
rm -rfv build rm -rfv build; mkdir build
viewer: viewer:
okular build/${NAME}.pdf okular build/${NAME}.pdf