Produce documents with proper filenames with Makefile

This commit is contained in:
Jan Philipp Timme 2018-09-24 13:59:57 +02:00
parent 38ec1b8781
commit 74bbd8cd61
2 changed files with 15 additions and 0 deletions

3
.gitignore vendored
View File

@ -15,6 +15,9 @@
# build-folder from texmaker
build
# release-folder from Makefile
release
# JabRef creates these
*.sav

View File

@ -1,9 +1,16 @@
.PHONY: default
MA_NAME="MA-Master"
MA_NAME_FINAL="Masterarbeit Konzeption und Umsetzung IPv6-VPN"
CA_DOC_NAME="CA-DOC-Master"
CA_DOC_NAME_FINAL="Dokumentation CA IPv6-VPN"
SRV_DOC_NAME="SRV-DOC-Master"
SRV_DOC_NAME_FINAL="Serverdokumentation IPv6-VPN"
CLNT_DOC_NAME="CLNT-DOC-Master"
CLNT_DOC_NAME_FINAL="Benutzeranleitung IPv6-VPN"
LAST_EXPORT=`cat LAST_EXPORT`
@ -14,30 +21,35 @@ render_ma:
bibtex build/${MA_NAME}
pdflatex -output-directory build ${MA_NAME}.tex
pdflatex -output-directory build ${MA_NAME}.tex
cp build/${MA_NAME}.pdf release/${MA_NAME_FINAL}.pdf
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
cp build/${CA_DOC_NAME}.pdf release/${CA_DOC_NAME_FINAL}.pdf
render_srv_doc:
pdflatex -output-directory build ${SRV_DOC_NAME}.tex
#bibtex build/${SRV_DOC_NAME}
#pdflatex -output-directory build ${SRV_DOC_NAME}.tex
pdflatex -output-directory build ${SRV_DOC_NAME}.tex
cp build/${SRV_DOC_NAME}.pdf release/${SRV_DOC_NAME_FINAL}.pdf
render_clnt_doc:
pdflatex -output-directory build ${CLNT_DOC_NAME}.tex
#bibtex build/${CLNT_DOC_NAME}
#pdflatex -output-directory build ${CLNT_DOC_NAME}.tex
pdflatex -output-directory build ${CLNT_DOC_NAME}.tex
cp build/${CLNT_DOC_NAME}.pdf release/${CLNT_DOC_NAME_FINAL}.pdf
clean:
cd build; rm -v *.aux *.bbl *.blg *.log *.out *.toc *.synctex.gz; exit 0;
cleanall:
rm -rfv build; mkdir build
rm -rfv release; mkdir release
viewer_ma:
okular build/${MA_NAME}.pdf