diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-06-23 12:06:45 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-06-23 12:06:45 +0100 |
commit | 755a29a28811baeca65f025ee2f43cb7c723f23f (patch) | |
tree | 9ea09cccc97f4dfd9336394a889183f4fc7644c9 | |
parent | ae38993e0f98ff81c2d9a638a92f2072cdb9de15 (diff) | |
download | rabbitmq-server-755a29a28811baeca65f025ee2f43cb7c723f23f.tar.gz |
added support for make-3.80 (and a deprecation warning)
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -62,6 +62,8 @@ ERL_CALL=erl_call -sname $(RABBITMQ_NODENAME) -e ERL_EBIN=erl -noinput -pa $(EBIN_DIR) +NEED_MAKE := 3.81 + define usage_xml_to_erl $(subst __,_,$(patsubst $(DOCS_DIR)/rabbitmq%.1.xml, $(SOURCE_DIR)/rabbit_%_usage.erl, $(subst -,_,$(1)))) endef @@ -76,6 +78,11 @@ 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) +.DEFAULT_GOAL=all # Introduced in 3.81 +endif + all: $(TARGETS) $(DEPS_FILE): $(SOURCES) $(INCLUDES) @@ -268,7 +275,7 @@ install_dirs: mkdir -p $(SBIN_DIR) mkdir -p $(MAN_DIR) -$(foreach XML, $(USAGES_XML), $(eval $(call usage_dep, $(XML)))) +$(foreach XML,$(USAGES_XML),$(eval $(call usage_dep, $(XML)))) # Note that all targets which depend on clean must have clean in their # name. Also any target that doesn't depend on clean should not have |