From abfd58b78188c3408599b98fcce611349bfa8b9c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 3 Aug 2015 23:17:34 +0000 Subject: Add make version guard --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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 := -- cgit v1.2.3