From c15880e4f887049e68b807d5ee784a10b82ea3f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Hutter?= Date: Tue, 12 Jan 2021 19:21:44 +0100 Subject: [PATCH] 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. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 27e15a2..4878ed8 100644 --- a/Makefile +++ b/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"