From: Simon Marlow Date: Tue, 2 May 2006 11:00:01 +0000 (+0000) Subject: fix whitespace problem that shows up on Solaris (x86) X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=1994438bb2a4e052a267744dcec9efb6f8bd3e97 fix whitespace problem that shows up on Solaris (x86) --- diff --git a/mk/target.mk b/mk/target.mk index 0334896..bf82fd4 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 $@;"; \