Don't compile files twice when the compilation fails.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 25 Apr 2008 14:08:23 +0000 (15:08 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 25 Apr 2008 14:08:23 +0000 (15:08 +0100)
Andrew Bartlett

source/build/make/rules.mk

index 541fa018db7c163972991c252548f1c0930a2be2..8c5b1fe6f34a84f0bfd6408e6afceb5ecc3f4dca 100644 (file)
@@ -212,8 +212,7 @@ include/includes.d: include/includes.h
        @-mkdir -p `dirname $@`
        @$(COMPILE) && exit 0 ; \
                echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE)" 1>&2;\
-               $(COMPILE) >/dev/null 2>&1
+               echo "$(COMPILE)" 1>&2 && exit 1