masterthesis/Makefile

118 lines
3.5 KiB
Makefile
Raw Permalink Normal View History

2018-09-03 10:45:10 +02:00
.PHONY: default
2018-10-01 12:32:41 +02:00
SHELL=/bin/bash
2018-05-09 13:05:55 +02:00
2018-09-12 12:54:05 +02:00
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"
2018-09-12 22:19:28 +02:00
SRV_DOC_NAME="SRV-DOC-Master"
SRV_DOC_NAME_FINAL="Serverdokumentation IPv6-VPN"
2018-09-23 16:03:10 +02:00
CLNT_DOC_NAME="CLNT-DOC-Master"
CLNT_DOC_NAME_FINAL="Benutzeranleitung IPv6-VPN"
FULL_BUNDLE_NAME="FULL-BUNDLE"
FULL_BUNDLE_NAME_FINAL="Druckversion Masterarbeit Konzeption und Umsetzung IPv6-VPN"
2018-05-09 13:05:55 +02:00
LAST_EXPORT=`cat LAST_EXPORT`
2018-10-01 12:15:50 +02:00
# Custom command enhancements
2018-10-01 12:32:41 +02:00
PDFLATEX=pdflatex -interaction=nonstopmode -file-line-error -output-directory build
PDFLATEXGREP=""
#PDFLATEXGREP=| grep -i ".*:[0-9]*:.*\|warning"
2018-10-01 12:15:50 +02:00
2018-09-24 14:16:30 +02:00
default: cleanall render_all
2018-09-24 15:13:00 +02:00
render_all: render_all_md render_all_html render_all_pdf
2018-09-24 14:16:30 +02:00
render_all_pdf: render_ma_pdf render_ca_doc_pdf render_srv_doc_pdf render_clnt_doc_pdf render_full_bundle_pdf
2018-09-24 14:55:24 +02:00
render_all_md: render_ma_md render_ca_doc_md render_srv_doc_md render_clnt_doc_md
2018-09-24 15:13:00 +02:00
render_all_html: render_ma_html render_ca_doc_html render_srv_doc_html render_clnt_doc_html
2018-09-24 14:55:24 +02:00
render_ma_md:
pandoc -s ${MA_NAME}.tex -o build/${MA_NAME}.md
cp build/${MA_NAME}.md release/${MA_NAME_FINAL}.md
2018-09-24 15:13:00 +02:00
render_ma_html:
pandoc -s ${MA_NAME}.tex -o build/${MA_NAME}.html
cp build/${MA_NAME}.html release/${MA_NAME_FINAL}.html
2018-09-24 14:55:24 +02:00
render_ma_pdf:
2018-10-01 12:15:50 +02:00
${PDFLATEX} ${MA_NAME}.tex ${PDFLATEXGREP}
2018-09-12 12:54:05 +02:00
bibtex build/${MA_NAME}
2018-10-01 12:15:50 +02:00
${PDFLATEX} ${MA_NAME}.tex ${PDFLATEXGREP}
${PDFLATEX} ${MA_NAME}.tex ${PDFLATEXGREP}
cp build/${MA_NAME}.pdf release/${MA_NAME_FINAL}.pdf
2018-05-09 13:05:55 +02:00
2018-09-24 14:55:24 +02:00
render_ca_doc_md:
pandoc -s ${CA_DOC_NAME}.tex -o build/${CA_DOC_NAME}.md
cp build/${CA_DOC_NAME}.md release/${CA_DOC_NAME_FINAL}.md
2018-09-24 15:13:00 +02:00
render_ca_doc_html:
pandoc -s ${CA_DOC_NAME}.tex -o build/${CA_DOC_NAME}.html
cp build/${CA_DOC_NAME}.html release/${CA_DOC_NAME_FINAL}.html
2018-09-24 14:55:24 +02:00
render_ca_doc_pdf:
2018-10-01 12:15:50 +02:00
${PDFLATEX} ${CA_DOC_NAME}.tex ${PDFLATEXGREP}
${PDFLATEX} ${CA_DOC_NAME}.tex ${PDFLATEXGREP}
cp build/${CA_DOC_NAME}.pdf release/${CA_DOC_NAME_FINAL}.pdf
2018-09-24 14:55:24 +02:00
render_srv_doc_md:
pandoc -s ${SRV_DOC_NAME}.tex -o build/${SRV_DOC_NAME}.md
cp build/${SRV_DOC_NAME}.md release/${SRV_DOC_NAME_FINAL}.md
2018-09-24 15:13:00 +02:00
render_srv_doc_html:
pandoc -s ${SRV_DOC_NAME}.tex -o build/${SRV_DOC_NAME}.html
cp build/${SRV_DOC_NAME}.html release/${SRV_DOC_NAME_FINAL}.html
2018-09-24 14:55:24 +02:00
render_srv_doc_pdf:
2018-10-01 12:15:50 +02:00
${PDFLATEX} ${SRV_DOC_NAME}.tex ${PDFLATEXGREP}
${PDFLATEX} ${SRV_DOC_NAME}.tex ${PDFLATEXGREP}
cp build/${SRV_DOC_NAME}.pdf release/${SRV_DOC_NAME_FINAL}.pdf
2018-09-12 22:19:28 +02:00
2018-09-24 14:55:24 +02:00
render_clnt_doc_md:
pandoc -s ${CLNT_DOC_NAME}.tex -o build/${CLNT_DOC_NAME}.md
cp build/${CLNT_DOC_NAME}.md release/${CLNT_DOC_NAME_FINAL}.md
2018-09-24 15:13:00 +02:00
render_clnt_doc_html:
pandoc -s ${CLNT_DOC_NAME}.tex -o build/${CLNT_DOC_NAME}.html
cp build/${CLNT_DOC_NAME}.html release/${CLNT_DOC_NAME_FINAL}.html
2018-09-24 14:55:24 +02:00
render_clnt_doc_pdf:
2018-10-01 12:15:50 +02:00
${PDFLATEX} ${CLNT_DOC_NAME}.tex ${PDFLATEXGREP}
${PDFLATEX} ${CLNT_DOC_NAME}.tex ${PDFLATEXGREP}
cp build/${CLNT_DOC_NAME}.pdf release/${CLNT_DOC_NAME_FINAL}.pdf
2018-09-23 16:03:10 +02:00
render_full_bundle_pdf:
2018-10-01 12:15:50 +02:00
${PDFLATEX} ${FULL_BUNDLE_NAME}.tex ${PDFLATEXGREP}
cp build/${FULL_BUNDLE_NAME}.pdf release/${FULL_BUNDLE_NAME_FINAL}.pdf
2018-09-03 10:45:10 +02:00
2018-09-24 14:16:30 +02:00
view_all: viewer_ma viewer_ca_doc viewer_srv_doc viewer_clnt_doc
2018-05-09 13:27:22 +02:00
2018-09-12 22:19:28 +02:00
viewer_ma:
2018-09-24 14:16:30 +02:00
okular build/${MA_NAME}.pdf &
2018-09-12 22:19:28 +02:00
viewer_ca_doc:
2018-09-24 14:16:30 +02:00
okular build/${CA_DOC_NAME}.pdf &
2018-09-12 22:19:28 +02:00
viewer_srv_doc:
2018-09-24 14:16:30 +02:00
okular build/${SRV_DOC_NAME}.pdf &
2018-09-03 10:36:31 +02:00
2018-09-23 16:03:10 +02:00
viewer_clnt_doc:
2018-09-24 14:16:30 +02:00
okular build/${CLNT_DOC_NAME}.pdf &
clean:
2018-10-01 12:32:41 +02:00
cd build; rm -v *.aux *.bbl *.blg *.log *.out *.toc *.synctex.gz; cd ..; exit 0;
2018-09-24 14:16:30 +02:00
cleanall:
rm -rfv build; mkdir build
rm -rfv release; mkdir release
2018-09-23 16:03:10 +02:00
2018-09-24 14:16:30 +02:00
show_all: cleanall render_all view_all
2018-09-03 10:45:10 +02:00
2018-09-24 14:16:30 +02:00
release: cleanall render_all clean