diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-06-09 19:24:45 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-06-09 19:24:45 +0100 |
commit | 96eca81ab1da4a23d138bbed73700c4e8ac7812b (patch) | |
tree | f1f4a4eb37ec47886e51c489ce1b0c8ec2f58b36 /ghc.mk | |
parent | 22690c9900068b121863dc359b8c7699b453e70d (diff) | |
download | haskell-96eca81ab1da4a23d138bbed73700c4e8ac7812b.tar.gz |
Change how we check that we have a suitable 'make'
We now check in the same way that the testsuite does.
Diffstat (limited to 'ghc.mk')
-rw-r--r-- | ghc.mk | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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" |