From b1cf7a89be45fa743057a27d6c46bdc320d47a10 Mon Sep 17 00:00:00 2001 From: Michael Bredel Date: Sun, 12 Nov 2017 02:23:36 +0100 Subject: [PATCH] Added a "test" target that returns with an error code in case of failure. --- makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makefile b/makefile index fd8a404..3cf8f5d 100644 --- a/makefile +++ b/makefile @@ -20,6 +20,11 @@ clean: cleanall: clean @rm *.pdf +test: clean + @pdflatex -interaction=nonstopmode -halt-on-error ${MASTER}.tex + @test -f ${MASTER}-blx.bib && ( bibtex ${MASTER}; pdflatex ${MASTER}.tex ) + @pdflatex ${MASTER}.tex + bz2: clean @echo 'creating package including Docs' @tar --exclude-vcs -cf `pwd`/../${MASTER}-${NAME}_${SURNAME}-${VERSION}-`date +%Y%m%d`.tar `pwd`/../`pwd | sed "s,^\(.*/\)\?\([^/]*\),\2,"`