From 55d8b482e9e9d21f22cae04bf8dbf434d6d7ed6d Mon Sep 17 00:00:00 2001 From: Thomas-Karl Pietrowski Date: Sun, 25 Jan 2015 00:38:54 +0100 Subject: [PATCH] Ignoring failed pdf build as long as pdf file exists --- doc/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index c92b4a9b6..7698513fc 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -102,9 +102,16 @@ latex: "run these through (pdf)latex." pdf: latex - $(MAKE) -C build$(P)latex all-pdf LATEXOPTS=$(LATEXOPTS$(_TESTS)) + rm -f build$(P)latex$(P)Kivy.pdf + -$(MAKE) -C build$(P)latex all-pdf LATEXOPTS=$(LATEXOPTS$(_TESTS)) +ifneq ("$(wildcard build$(P)latex$(P)Kivy.pdf)","") @echo - @echo "Build finished; the PDF files are in build/latex." + @echo "Build finished; the PDF file(s) are in build/latex." +else + @echo + @echo "Build failed; there is no PDF file(s) in build/latex." + exit 1 +endif ps: latex $(MAKE) -C build$(P)latex all-ps