masterthesis/Makefile

34 lines
760 B
Makefile

.PHONY: default
MA_NAME="MA-Master"
CA_DOC_NAME="CA-DOC-Master"
LAST_EXPORT=`cat LAST_EXPORT`
default: cleanall render_ma render_ca_doc
render_ma:
pdflatex -output-directory build ${MA_NAME}.tex
bibtex build/${MA_NAME}
pdflatex -output-directory build ${MA_NAME}.tex
pdflatex -output-directory build ${MA_NAME}.tex
render_ca_doc:
pdflatex -output-directory build ${CA_DOC_NAME}.tex
#bibtex build/${CA_DOC_NAME}
#pdflatex -output-directory build ${CA_DOC_NAME}.tex
pdflatex -output-directory build ${CA_DOC_NAME}.tex
clean:
cd build; rm -v *.aux *.bbl *.blg *.log *.out *.toc
cleanall:
rm -rfv build; mkdir build
viewer:
okular build/${NAME}.pdf
show: cleanall render_ma render_ca_doc viewer
release: cleanall render_ma render_ca_doc clean