Merge pull request #11827 from zmstone/1027-remove-unused-vars-from-Makefile
refactor: OTP_VSN and ELIXIR_VSN are no longer needed in Makefile
This commit is contained in:
commit
3e7ce6531d
15
Makefile
15
Makefile
|
@ -23,17 +23,6 @@ endif
|
||||||
export EMQX_DASHBOARD_VERSION ?= v1.5.0
|
export EMQX_DASHBOARD_VERSION ?= v1.5.0
|
||||||
export EMQX_EE_DASHBOARD_VERSION ?= e1.3.0
|
export EMQX_EE_DASHBOARD_VERSION ?= e1.3.0
|
||||||
|
|
||||||
# `:=` should be used here, otherwise the `$(shell ...)` will be executed every time when the variable is used
|
|
||||||
# In make 4.4+, for backward-compatibility the value from the original environment is used.
|
|
||||||
# so the shell script will be executed tons of times.
|
|
||||||
# https://github.com/emqx/emqx/pull/10627
|
|
||||||
ifeq ($(strip $(OTP_VSN)),)
|
|
||||||
export OTP_VSN := $(shell $(SCRIPTS)/get-otp-vsn.sh)
|
|
||||||
endif
|
|
||||||
ifeq ($(strip $(ELIXIR_VSN)),)
|
|
||||||
export ELIXIR_VSN := $(shell $(SCRIPTS)/get-elixir-vsn.sh)
|
|
||||||
endif
|
|
||||||
|
|
||||||
PROFILE ?= emqx
|
PROFILE ?= emqx
|
||||||
REL_PROFILES := emqx emqx-enterprise
|
REL_PROFILES := emqx emqx-enterprise
|
||||||
PKG_PROFILES := emqx-pkg emqx-enterprise-pkg
|
PKG_PROFILES := emqx-pkg emqx-enterprise-pkg
|
||||||
|
@ -45,6 +34,10 @@ CT_COVER_EXPORT_PREFIX ?= $(PROFILE)
|
||||||
|
|
||||||
export REBAR_GIT_CLONE_OPTIONS += --depth=1
|
export REBAR_GIT_CLONE_OPTIONS += --depth=1
|
||||||
|
|
||||||
|
.PHONY: nothing
|
||||||
|
nothing:
|
||||||
|
@:
|
||||||
|
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
default: $(REBAR) $(PROFILE)
|
default: $(REBAR) $(PROFILE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue