summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2019-06-26 18:34:20 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2019-06-26 18:34:20 +0200
commit68213819aa4a6738cb1762b6597d211171f6ac9e (patch)
tree7093436a936f8d5f35173b81a33cc6955ea3787c /Makefile
parent678c1d423e765c5438e637fc387c3a3dff34e0d9 (diff)
downloadrabbitmq-server-git-68213819aa4a6738cb1762b6597d211171f6ac9e.tar.gz
rabbitmq-mix.mk: Ensure `$HOME` does not come from the command line
... by using the `override` directive to enforce our internal value. As a reminder, this a hack to convince mix(1) to work offline and use a copy of the Hex.pm cache provided in the source archive. Note that this file was moved from rabbitmq-common. It has no use there and it avoids the need to go through the entire CI pipeline if we want to change this file. The `stats.mk` file was also moved to the new `mk` subdirectory to avoid file pollution at the root of this project.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f86d4d0b23..764567f999 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ endif
include rabbitmq-components.mk
include erlang.mk
-include stats.mk
+include mk/stats.mk
# --------------------------------------------------------------------
# Mix Hex cache management.
@@ -197,7 +197,7 @@ $(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST)
(cd $$(dirname "$$mix_exs") && \
env DEPS_DIR=$@/deps HOME=$@/deps MIX_ENV=prod FILL_HEX_CACHE=yes mix local.hex --force && \
env DEPS_DIR=$@/deps HOME=$@/deps MIX_ENV=prod FILL_HEX_CACHE=yes mix deps.get --only prod && \
- cp $(DEPS_DIR)/rabbit_common/mk/rabbitmq-mix.mk . && \
+ cp $(CURDIR)/mk/rabbitmq-mix.mk . && \
rm -rf _build deps); \
fi; \
if test -f "$$dep/license_info"; then \