From 01be90dc5bef26aab7047c0513ae9b2cc9dad1a5 Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Tue, 7 Jan 1997 13:16:54 +0000
Subject: [PATCH] [project @ 1997-01-07 13:16:54 by simonm] Makefile for
 building objects several ways, for libraries and runtime system

---
 ghc/mk/ways.mk | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 ghc/mk/ways.mk

diff --git a/ghc/mk/ways.mk b/ghc/mk/ways.mk
new file mode 100644
index 000000000000..bbeec417c01a
--- /dev/null
+++ b/ghc/mk/ways.mk
@@ -0,0 +1,38 @@
+#-----------------------------------------------------------------------------
+# $Id: ways.mk,v 1.1 1997/01/07 13:16:54 simonm Exp $
+
+# Build an object in several different ways, using a subsidiary Makefile.
+
+#	MAKEFILE = 	The Makefile to invoke for each way
+#	DESCR    =	Description of object being built
+
+ifndef NoWayAllTarget
+all ::
+	@for i in $(WAY_SUFFIXES); do \
+		echo; \
+		echo =========== Making $(DESCR) for way $$i; \
+		echo; \
+		$(MAKE) -f $(MAKEFILE) suffix=$$i; \
+	done
+endif
+
+ifndef NoWayInstallTarget
+install ::
+	@for i in $(WAY_SUFFIXES); do \
+		$(MAKE) -f $(MAKEFILE) suffix=$$i install; \
+	done
+endif
+
+ifndef NoWayCleanTarget
+clean ::
+	@for i in $(WAY_SUFFIXES); do \
+		$(MAKE) -f $(MAKEFILE) suffix=$$i clean; \
+	done
+endif
+
+# We normally only want to make dependencies once
+
+ifndef NoWayDependTarget
+depend ::
+	@$(MAKE) -f $(MAKEFILE) depend
+endif
-- 
GitLab