summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-06-24 19:50:34 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-06-24 19:50:34 +0100
commitbcebe216aed566ede2e95a3642220f85574b1480 (patch)
tree0d26219b1d2fe9c78cbe138f8bdf8bfb03b4d631
parent755a29a28811baeca65f025ee2f43cb7c723f23f (diff)
downloadrabbitmq-server-bcebe216aed566ede2e95a3642220f85574b1480.tar.gz
blow up if make is to old
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e1c8cb37..fc1aea8f 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