summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-06-10 14:01:31 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2010-06-10 14:01:31 +0100
commitb8509aa8f37df2f6241cb4edba4ccb848ec7861a (patch)
tree421fe29f5155eba08360bc3a49380e1e8acb388e
parent27d7ca35ac9bdbb3061b20dad1740999365d3ead (diff)
downloadrabbitmq-server-bug22850.tar.gz
Fix testing for variables so that you get as many errors as possible at the same time. This solves the very annoying problem of a build dying for some reason, then you fix the reason, build again, and end up with a very slightly different error at the same point.bug22850
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9e531fd7..5eb030a1 100644
--- a/Makefile
+++ b/Makefile
@@ -256,9 +256,10 @@ install: all docs_all install_dirs
done
install_dirs:
- @[ -n "$(TARGET_DIR)" ] || (echo "Please set TARGET_DIR."; false)
- @[ -n "$(SBIN_DIR)" ] || (echo "Please set SBIN_DIR."; false)
- @[ -n "$(MAN_DIR)" ] || (echo "Please set MAN_DIR."; false)
+ @ OK=true && \
+ { [ -n "$(TARGET_DIR)" ] || { echo "Please set TARGET_DIR."; OK=false; }; } && \
+ { [ -n "$(SBIN_DIR)" ] || { echo "Please set SBIN_DIR."; OK=false; }; } && \
+ { [ -n "$(MAN_DIR)" ] || { echo "Please set MAN_DIR."; OK=false; }; } && $$OK
mkdir -p $(TARGET_DIR)/sbin
mkdir -p $(SBIN_DIR)