[commit: ghc] master: Change how we check that we have a suitable 'make' (96eca81)
Ian Lynagh
igloo at earth.li
Sun Jun 9 21:39:01 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
https://github.com/ghc/ghc/commit/96eca81ab1da4a23d138bbed73700c4e8ac7812b
>---------------------------------------------------------------
commit 96eca81ab1da4a23d138bbed73700c4e8ac7812b
Author: Ian Lynagh <ian at well-typed.com>
Date: Sun Jun 9 19:24:45 2013 +0100
Change how we check that we have a suitable 'make'
We now check in the same way that the testsuite does.
>---------------------------------------------------------------
ghc.mk | 17 +++++++++++++++++
mk/tree.mk | 6 ------
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/ghc.mk b/ghc.mk
index f7dc832..c604a9a 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -76,6 +76,23 @@
default : all
+
+##################################################
+# Check that we have a new enough 'make'
+
+HAVE_EVAL := NO
+$(eval HAVE_EVAL := YES)
+
+ifeq "$(HAVE_EVAL)" "NO"
+$(error Your make does not support eval. You need GNU make >= 3.81)
+endif
+
+ifeq "$(abspath /)" ""
+$(error Your make does not support abspath. You need GNU make >= 3.81)
+endif
+##################################################
+
+
# Catch make if it runs away into an infinite loop
ifeq "$(MAKE_RESTARTS)" ""
else ifeq "$(MAKE_RESTARTS)" "1"
diff --git a/mk/tree.mk b/mk/tree.mk
index 9c2e3da..887e643 100644
--- a/mk/tree.mk
+++ b/mk/tree.mk
@@ -1,10 +1,4 @@
-ifneq "$(findstring 3.7, $(MAKE_VERSION))" ""
-ifeq "$(findstring 3.79.1, $(MAKE_VERSION))" ""
-$(error GNU make version 3.79.1 or later is required.)
-endif
-endif
-
################################################################################
#
# Layout of the source tree
More information about the ghc-commits
mailing list