From e79bf06e21221a04c4b05a1805ea511ba73796ce Mon Sep 17 00:00:00 2001
From: sof <unknown>
Date: Mon, 24 Mar 1997 04:32:23 +0000
Subject: [PATCH] [project @ 1997-03-24 04:28:23 by sof] Made WAYS immune

---
 ghc/compiler/Makefile    | 4 ++--
 ghc/includes/Makefile    | 4 ++--
 ghc/utils/Makefile       | 1 +
 ghc/utils/hp2ps/Makefile | 2 +-
 ghc/utils/hscpp/Makefile | 2 +-
 5 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile
index af8efc06d954..0583c8605353 100644
--- a/ghc/compiler/Makefile
+++ b/ghc/compiler/Makefile
@@ -1,12 +1,12 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.11 1997/03/19 20:44:52 simonpj Exp $
+# $Id: Makefile,v 1.12 1997/03/24 04:31:45 sof Exp $
 
 TOP = ..
 include $(TOP)/mk/boilerplate.mk
 
 #-----------------------------------------------------------------------------
 # Building hsc different ways (default is just `normal' sequential)
-WAYS=$(GhcCompilerWays)
+override WAYS=$(GhcCompilerWays)
 
 #-----------------------------------------------------------------------------
 #		Set SUBDIRS
diff --git a/ghc/includes/Makefile b/ghc/includes/Makefile
index 25b31613bfe5..563ae5013959 100644
--- a/ghc/includes/Makefile
+++ b/ghc/includes/Makefile
@@ -8,7 +8,7 @@ include $(TOP)/mk/boilerplate.mk
 #
 # Just to make sure, no ways stuff in here, please.
 #
-WAYS=
+override WAYS=
 
 # De-litted header files
 LH_FILES=$(wildcard *.lh)
@@ -95,7 +95,7 @@ boot :: all
 # (ditto for interface files). This is not *really* needed, but
 # it gives (perhaps) a cleaner binary dist structure..might change.
 #
-datadir:=$(libdir)/includes
+override datadir:=$(libdir)/includes
 INSTALL_DATAS += $(DELIT_H_FILES) $(H_FILES) $(TARGETPLATFORM).h $(H_CONFIG)
 
 #
diff --git a/ghc/utils/Makefile b/ghc/utils/Makefile
index 70489845a8eb..78554154dfc5 100644
--- a/ghc/utils/Makefile
+++ b/ghc/utils/Makefile
@@ -4,6 +4,7 @@ include $(TOP)/mk/boilerplate.mk
 #
 # No ways stuff in here (and further below), please
 #
+override WAYS=
 export WAYS=
 
 ifneq "$(BIN_DIST_NAME)" ""
diff --git a/ghc/utils/hp2ps/Makefile b/ghc/utils/hp2ps/Makefile
index 90626ac59374..b7c484b77467 100644
--- a/ghc/utils/hp2ps/Makefile
+++ b/ghc/utils/hp2ps/Makefile
@@ -1,6 +1,6 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
-WAYS=
+override WAYS=
 
 C_SRCS  = $(wildcard *.c)
 H_SRCS  = $(wildcard *.h)
diff --git a/ghc/utils/hscpp/Makefile b/ghc/utils/hscpp/Makefile
index ddd80d189314..a7833213d672 100644
--- a/ghc/utils/hscpp/Makefile
+++ b/ghc/utils/hscpp/Makefile
@@ -1,6 +1,6 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
-WAYS=
+override WAYS=
 
 SCRIPT_PROG=hscpp
 SCRIPT_OBJS=hscpp.prl
-- 
GitLab