From b8509aa8f37df2f6241cb4edba4ccb848ec7861a Mon Sep 17 00:00:00 2001 From: Matthew Sackman Date: Thu, 10 Jun 2010 14:01:31 +0100 Subject: 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. --- Makefile | 7 ++++--- 1 file 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) -- cgit v1.2.1