Logfile is now also produced if the Pandoc build fails. Also changed the order of the result copying mechanism in order to guarantee that the logfile will be copied.

This commit is contained in:
Günther Hutter 2021-01-12 19:21:44 +01:00
parent 4c582bc98c
commit c15880e4f8

View File

@ -53,7 +53,7 @@ compile-pdf:
# Builden mit pandoc. Als Basisverzeichnis springen wir ins staging.
# Damit sollten alle relativen Links stimmen
@cd staging && pandoc "$(STAGINGDIR)"/*.md "$(STAGINGDIR)/style/"*.md *.yaml \
-@cd staging && pandoc "$(STAGINGDIR)"/*.md "$(STAGINGDIR)/style/"*.md *.yaml \
-o "$(OUTPUTFILE)" \
--template="$(STAGINGDIR)/style/template.tex" \
--bibliography="$(BIBFILE)" 2>"$(LOGFILE)" \
@ -67,8 +67,8 @@ compile-pdf:
@cat $(LOGFILE)
# Build erfolgreich -> Resultate zurückkopieren
@rsync -az $(OUTPUTFILE) $(SOURCEDIR)/
@rsync -az $(LOGFILE) $(SOURCEDIR)/
@rsync -az $(OUTPUTFILE) $(SOURCEDIR)/
do-spellcheck: