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:
Loïc Hoguin 2024-06-25 13:39:38 +02:00
parent 9f15e978b1
commit 2b03233ac1
No known key found for this signature in database
GPG Key ID: C69E26E3A9DF618F
6 changed files with 3 additions and 33 deletions

View File

@ -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 \

View File

@ -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 \

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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 \