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:
parent
4c582bc98c
commit
c15880e4f8
8
Makefile
8
Makefile
@ -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)" \
|
||||
@ -61,15 +61,15 @@ compile-pdf:
|
||||
--highlight-style=pygments \
|
||||
--listings \
|
||||
--metadata link-citations=true \
|
||||
-N
|
||||
-N
|
||||
|
||||
# Ausgabe der Warnungen
|
||||
@cat $(LOGFILE)
|
||||
|
||||
# Build erfolgreich -> Resultate zurückkopieren
|
||||
@rsync -az $(OUTPUTFILE) $(SOURCEDIR)/
|
||||
@rsync -az $(LOGFILE) $(SOURCEDIR)/
|
||||
|
||||
@rsync -az $(OUTPUTFILE) $(SOURCEDIR)/
|
||||
|
||||
do-spellcheck:
|
||||
|
||||
@echo "Performing a spellcheck on all Markdown files"
|
||||
|
Loading…
Reference in New Issue
Block a user