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 | 8c5dab3fa0db0dabe3b6ad09cc12c2dc6c4d64b1 (patch) | |
| tree | 421fe29f5155eba08360bc3a49380e1e8acb388e | |
| parent | fde8a552d689c78ac3ec3d57a5f4835b3f059249 (diff) | |
| download | rabbitmq-server-git-8c5dab3fa0db0dabe3b6ad09cc12c2dc6c4d64b1.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.
| -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) |
