From 2c0f99f940f639a2170b7f56ac83661f8ffde406 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Thu, 9 Jun 2016 09:00:40 +0300 Subject: [PATCH] mdbx: refine makefile ci-target. Change-Id: I48fce22ca32e45edbc519750cca50d361283f53d --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c8405ec2..870166c0 100644 --- a/Makefile +++ b/Makefile @@ -200,7 +200,8 @@ endif ci-rule = @( CC=$$(which $1); if [ -n "$$CC" ]; then \ CC=$$(readlink -f $$CC); echo -n "probe by $2 ($$CC): " && \ - $(MAKE) clean >$1.log 2>&1 && $(MAKE) all check 1>$1.log 2>&1 && echo "Ok" || echo " Failed, see $1.log"; \ + $(MAKE) clean >$1.log 2>$1.err && $(MAKE) all check 1>$1.log 2>$1.err && echo "OK" \ + || ( echo "FAILED"; cat $1.err >&2; exit 1 ); \ else echo "no $2 ($1) for probe"; fi; ) ci: $(call ci-rule,cc,default C compiler)