summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-04-25 15:08:23 +0100
committerAndrew Bartlett <abartlet@samba.org>2008-04-25 15:08:23 +0100
commitee70e01e3e4d5f4501dea1b217ff29d978b94548 (patch)
tree5f6d3118b8460c096789039d522c17c92c26bad2
parentff1ad0430095b00daa9e66b45cd85b6f65ab9687 (diff)
downloadsamba-ee70e01e3e4d5f4501dea1b217ff29d978b94548.tar.gz
samba-ee70e01e3e4d5f4501dea1b217ff29d978b94548.tar.bz2
samba-ee70e01e3e4d5f4501dea1b217ff29d978b94548.zip
Don't compile files twice when the compilation fails.
Andrew Bartlett (This used to be commit 53ea233649d12d77233611e272cf5f470177571c)
-rw-r--r--source4/build/make/rules.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/build/make/rules.mk b/source4/build/make/rules.mk
index 541fa018db..8c5b1fe6f3 100644
--- a/source4/build/make/rules.mk
+++ b/source4/build/make/rules.mk
@@ -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