summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-08-03 23:17:34 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-08-03 23:17:34 +0000
commitabfd58b78188c3408599b98fcce611349bfa8b9c (patch)
tree367993afcf316080303276cd93084238157a50d0
parent9dee5180c5373129f3ed1dc84363e58c2a77e9ff (diff)
downloads6-rc-abfd58b78188c3408599b98fcce611349bfa8b9c.tar.xz
Add make version guard
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b861d25..7ff52e7 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,11 @@
it: all
+make_need := 4.0
+ifeq "" "$(strip $(filter $(make_need), $(firstword $(sort $(make_need) $(MAKE_VERSION)))))"
+fail := $(error Your make ($(MAKE_VERSION)) is too old. You need $(make_need) or newer)
+endif
+
CC = $(error Please use ./configure first)
STATIC_LIBS :=