summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e1c8cb374e..fc1aea8f29 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,8 @@ ERL_CALL=erl_call -sname $(RABBITMQ_NODENAME) -e
ERL_EBIN=erl -noinput -pa $(EBIN_DIR)
-NEED_MAKE := 3.81
+# Versions prior to this are not supported
+NEED_MAKE := 3.80
define usage_xml_to_erl
$(subst __,_,$(patsubst $(DOCS_DIR)/rabbitmq%.1.xml, $(SOURCE_DIR)/rabbit_%_usage.erl, $(subst -,_,$(1))))
@@ -78,8 +79,10 @@ SCRIPTS_REL_PATH=$(shell ./calculate-relative $(TARGET_DIR)/sbin $(SBIN_DIR))
endif
endif
-ifeq ($(filter $(NEED_MAKE),(firstword $(sort $(MAKE_VERSION) $(NEED_MAKE)))),)
-$(warning Versions of make prior to $(NEED_MAKE) are not supported)
+ifeq ($(filter $(NEED_MAKE),$(firstword $(sort $(NEED_MAKE) $(MAKE_VERSION)))),)
+$(error Versions of make prior to $(NEED_MAKE) are not supported)
+endif
+ifeq ($(filter 3.81,$(firstword $(sort 3.81 $(MAKE_VERSION)))),)
.DEFAULT_GOAL=all # Introduced in 3.81
endif