summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-05-02 11:00:01 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-05-02 11:00:01 +0000
commit1994438bb2a4e052a267744dcec9efb6f8bd3e97 (patch)
tree14ba9c76003c4a521488d8d8cf1fe1c294acf3d4 /mk
parent77f15a8e94b54c4ec1c1cbfbb91a90094383f91d (diff)
downloadhaskell-1994438bb2a4e052a267744dcec9efb6f8bd3e97.tar.gz
fix whitespace problem that shows up on Solaris (x86)
Diffstat (limited to 'mk')
-rw-r--r--mk/target.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/target.mk b/mk/target.mk
index 0334896b3f..bf82fd430a 100644
--- a/mk/target.mk
+++ b/mk/target.mk
@@ -1069,7 +1069,7 @@ endif
# -------------------------------------------------------------------------
# Rules to invoke the current target recursively for each way
-ifneq "$(WAYS)" ""
+ifneq "$(strip $(WAYS))" ""
ifeq "$(way)" ""
# NB: the targets exclude
@@ -1081,7 +1081,7 @@ all docs TAGS clean distclean mostlyclean maintainer-clean install ::
@echo "PWD = $(shell pwd)"
@echo "------------------------------------------------------------------------"
# Don't rely on -e working, instead we check exit return codes from sub-makes.
- @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
+ case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
for i in $(WAYS) ; do \
echo "------------------------------------------------------------------------"; \
echo "== $(MAKE) way=$$i $@;"; \