Improve structure of Makefile a bit

This commit is contained in:
Jan Philipp Timme 2018-09-24 14:16:30 +02:00
parent 74bbd8cd61
commit 515e118023

View File

@ -14,7 +14,10 @@ CLNT_DOC_NAME_FINAL="Benutzeranleitung IPv6-VPN"
LAST_EXPORT=`cat LAST_EXPORT`
default: cleanall render_ma render_ca_doc render_srv_doc render_clnt_doc
default: cleanall render_all
render_all: render_ma render_ca_doc render_srv_doc render_clnt_doc
render_ma:
pdflatex -output-directory build ${MA_NAME}.tex
@ -44,6 +47,22 @@ render_clnt_doc:
pdflatex -output-directory build ${CLNT_DOC_NAME}.tex
cp build/${CLNT_DOC_NAME}.pdf release/${CLNT_DOC_NAME_FINAL}.pdf
view_all: viewer_ma viewer_ca_doc viewer_srv_doc viewer_clnt_doc
viewer_ma:
okular build/${MA_NAME}.pdf &
viewer_ca_doc:
okular build/${CA_DOC_NAME}.pdf &
viewer_srv_doc:
okular build/${SRV_DOC_NAME}.pdf &
viewer_clnt_doc:
okular build/${CLNT_DOC_NAME}.pdf &
clean:
cd build; rm -v *.aux *.bbl *.blg *.log *.out *.toc *.synctex.gz; exit 0;
@ -51,18 +70,6 @@ cleanall:
rm -rfv build; mkdir build
rm -rfv release; mkdir release
viewer_ma:
okular build/${MA_NAME}.pdf
show_all: cleanall render_all view_all
viewer_ca_doc:
okular build/${CA_DOC_NAME}.pdf
viewer_srv_doc:
okular build/${SRV_DOC_NAME}.pdf
viewer_clnt_doc:
okular build/${CLNT_DOC_NAME}.pdf
show_all: cleanall render_ma render_ca_doc render_srv_doc viewer_ma viewer_ca_doc viewer_srv_doc viewer_clnt_doc
release: cleanall render_ma render_ca_doc render_srv_doc render_clnt_doc clean
release: cleanall render_all clean