From 828e71e561966187381c6822a76cfa83f9c7109c Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Tue, 7 Jan 1997 13:19:38 +0000
Subject: [PATCH] [project @ 1997-01-07 13:19:38 by simonm] use ghc/mk/ways.mk.

---
 ghc/lib/Makefile | 33 +++++----------------------------
 1 file changed, 5 insertions(+), 28 deletions(-)

diff --git a/ghc/lib/Makefile b/ghc/lib/Makefile
index 006c38274984..1e256cd6830c 100644
--- a/ghc/lib/Makefile
+++ b/ghc/lib/Makefile
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.3 1996/12/19 09:13:55 simonpj Exp $
+# $Id: Makefile,v 1.4 1997/01/07 13:19:38 simonm Exp $
 
 TOP = ../..
 include $(TOP)/ghc/mk/ghc.mk
@@ -8,43 +8,20 @@ SUBDIRS = cbits
 ifeq ($(IncludeTestDirsInBuild),YES)
   SUBDIRS += tests
 endif
-
 include $(TOP)/mk/subdir.mk
 
 # per-build options: shared with runtime system
 include ../mk/buildflags.mk
 
-#-----------------------------------------------------------------------------
-# libHS.a, in several different 'ways'
-
-all ::
-	@for i in $(WAY_SUFFIXES); do \
-		echo; \
-		echo =========== Making libraries for way $$i; \
-		echo; \
-		$(MAKE) -f Makefile.libHS suffix=$$i; \
-	done
+MAKEFILE=Makefile.libHS
+DESCR=libraries
+include $(TOP)/ghc/mk/ways.mk
 
 # Shortcut for typical case when testing: just make the "normal" version
+# (simonm Todo: better way to do this?)
 libHS.a ::
 	$(MAKE)  -f Makefile.libHS suffix=norm
 
-install ::
-	@for i in $(WAY_SUFFIXES); do \
-		$(MAKE) -f Makefile.libHS suffix=$$i install; \
-	done
-
-clean ::
-	@for i in $(WAY_SUFFIXES); do \
-		$(MAKE) -f Makefile.libHS suffix=$$i clean; \
-	done
-
-# Dependencies are done by Makefile.libHS
-
-depend ::
-	@$(MAKE) -f Makefile.libHS depend
-
-
 # install MODULES file
 
 install ::
-- 
GitLab