Ignoring failed pdf build as long as pdf file exists

This commit is contained in:
Thomas-Karl Pietrowski 2015-01-25 00:38:54 +01:00
parent 4fdfe78b49
commit 55d8b482e9
1 changed files with 9 additions and 2 deletions

View File

@ -102,9 +102,16 @@ latex:
"run these through (pdf)latex." "run these through (pdf)latex."
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
@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 ps: latex
$(MAKE) -C build$(P)latex all-ps $(MAKE) -C build$(P)latex all-ps