summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-08-03 22:49:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-08-03 22:49:44 +0000
commit183bb56f6e0903680412f8238a022561b0beaabb (patch)
treeef28c9a8409745792da6860301e140983ad16494
parent6c96f05a25f1564b5e12366544677287fc201ef9 (diff)
downloadskalibs-183bb56f6e0903680412f8238a022561b0beaabb.tar.xz
Add make version guard
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 32dc746..31e358c 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,11 @@
it: all
+make_need := 3.81
+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)
-include config.mak