diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2010-06-10 14:01:31 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-06-10 14:01:31 +0100 |
commit | b8509aa8f37df2f6241cb4edba4ccb848ec7861a (patch) | |
tree | 421fe29f5155eba08360bc3a49380e1e8acb388e | |
parent | 27d7ca35ac9bdbb3061b20dad1740999365d3ead (diff) | |
download | rabbitmq-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-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |