diff --git a/src/nmath/standalone/Makefile.in b/src/nmath/standalone/Makefile.in index 5555c16e29..0623d3dc25 100644 --- a/src/nmath/standalone/Makefile.in +++ b/src/nmath/standalone/Makefile.in @@ -97,9 +97,10 @@ check: $(MAKE) -f test >> check.log 2>&1; \ else \ $(MAKE) all test > check.log 2>&1; \ - fi - @tail check.log - @$(ECHO) "check output can be found in src/nmath/standalone/check.log" + fi || { \ + $(ECHO) "==> src/nmath/standalone/check.log <=="; \ + tail check.log && exit 1; \ + } Copy: @$(ECHO) "Copying source files" diff --git a/src/nmath/standalone/Makefile.win b/src/nmath/standalone/Makefile.win index e0523c8e5b..52984cb3af 100644 --- a/src/nmath/standalone/Makefile.win +++ b/src/nmath/standalone/Makefile.win @@ -52,8 +52,10 @@ check: distclean $(MAKE) -f Makefile.win test >> check.log 2>&1; \ else \ $(MAKE) -f Makefile.win all test > check.log 2>&1; \ - fi - @$(ECHO) "check output can be found in src/nmath/standalone/check.log" + fi || { \ + $(ECHO) "==> src/nmath/standalone/check.log <=="; \ + tail check.log && exit 1; \ + } clean: @$(RM) $(SOURCES_NMATH) *.o *.d *.def Makedeps stamp-src