make: Remove rabbitmq-macros.mk
It hasn't been used for some time. If compare_version becomes necessary again in the future, it's in the history.
This commit is contained in:
parent
9f15e978b1
commit
2b03233ac1
|
@ -34,8 +34,7 @@ TEST_DEPS = rabbit rabbitmq_ct_helpers
|
|||
LOCAL_DEPS = ssl inets crypto public_key
|
||||
|
||||
DEP_EARLY_PLUGINS = rabbit_common/mk/rabbitmq-early-test.mk
|
||||
DEP_PLUGINS = rabbit_common/mk/rabbitmq-macros.mk \
|
||||
rabbit_common/mk/rabbitmq-build.mk \
|
||||
DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk \
|
||||
rabbit_common/mk/rabbitmq-hexpm.mk \
|
||||
rabbit_common/mk/rabbitmq-dist.mk \
|
||||
rabbit_common/mk/rabbitmq-run.mk \
|
||||
|
|
|
@ -10,8 +10,7 @@ LOCAL_DEPS = ssl inets crypto public_key
|
|||
PLT_APPS = rabbit
|
||||
|
||||
DEP_EARLY_PLUGINS = rabbit_common/mk/rabbitmq-early-test.mk
|
||||
DEP_PLUGINS = rabbit_common/mk/rabbitmq-macros.mk \
|
||||
rabbit_common/mk/rabbitmq-build.mk \
|
||||
DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk \
|
||||
rabbit_common/mk/rabbitmq-hexpm.mk \
|
||||
rabbit_common/mk/rabbitmq-dist.mk \
|
||||
rabbit_common/mk/rabbitmq-run.mk \
|
||||
|
|
|
@ -56,7 +56,6 @@ HEX_TARBALL_FILES += rabbitmq-components.mk \
|
|||
mk/rabbitmq-dist.mk \
|
||||
mk/rabbitmq-early-test.mk \
|
||||
mk/rabbitmq-hexpm.mk \
|
||||
mk/rabbitmq-macros.mk \
|
||||
mk/rabbitmq-test.mk \
|
||||
mk/rabbitmq-tools.mk
|
||||
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
# Compiler flags.
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
ifeq ($(filter rabbitmq-macros.mk,$(notdir $(MAKEFILE_LIST))),)
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))rabbitmq-macros.mk
|
||||
endif
|
||||
|
||||
# NOTE: This plugin is loaded twice because Erlang.mk recurses. That's
|
||||
# why ERL_LIBS may contain twice the path to Elixir libraries or
|
||||
# ERLC_OPTS may contain duplicated flags.
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
# Macro to compare two x.y.z versions.
|
||||
#
|
||||
# Usage:
|
||||
# ifeq ($(call compare_version,$(ERTS_VER),$(MAX_ERTS_VER),<),true)
|
||||
# # Only evaluated if $(ERTS_VER) < $(MAX_ERTS_VER)
|
||||
# endif
|
||||
|
||||
define compare_version
|
||||
$(shell awk 'BEGIN {
|
||||
split("$(1)", v1, ".");
|
||||
version1 = v1[1] * 1000000 + v1[2] * 10000 + v1[3] * 100 + v1[4];
|
||||
|
||||
split("$(2)", v2, ".");
|
||||
version2 = v2[1] * 1000000 + v2[2] * 10000 + v2[3] * 100 + v2[4];
|
||||
|
||||
if (version1 $(3) version2) {
|
||||
print "true";
|
||||
} else {
|
||||
print "false";
|
||||
}
|
||||
}')
|
||||
endef
|
|
@ -8,8 +8,7 @@ BUILD_DEPS = rabbit_common
|
|||
DEP_EARLY_PLUGINS = rabbit_common/mk/rabbitmq-early-plugin.mk
|
||||
TEST_DEPS = rabbit rabbitmq_ct_helpers
|
||||
|
||||
DEP_PLUGINS = rabbit_common/mk/rabbitmq-macros.mk \
|
||||
rabbit_common/mk/rabbitmq-build.mk \
|
||||
DEP_PLUGINS = rabbit_common/mk/rabbitmq-build.mk \
|
||||
rabbit_common/mk/rabbitmq-hexpm.mk \
|
||||
rabbit_common/mk/rabbitmq-dist.mk \
|
||||
rabbit_common/mk/rabbitmq-run.mk \
|
||||
|
|
Loading…
Reference in New Issue