about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-08-03 23:16:59 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-08-03 23:16:59 +0000
commitbbcebaa7ac43f0ce281f8b9901e8070819d8f4be (patch)
tree35947a133bd42af39200b5b23d5468965fa94a87 /Makefile
parente4beb335c144aa7d6eac978348063ab397ca1e2f (diff)
downloads6-bbcebaa7ac43f0ce281f8b9901e8070819d8f4be.tar.gz
s6-bbcebaa7ac43f0ce281f8b9901e8070819d8f4be.tar.xz
s6-bbcebaa7ac43f0ce281f8b9901e8070819d8f4be.zip
Add make version guard
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c602cad..3d49943 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 :=