Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 05ea2bc

Browse files
author
Daniil Fedotov
committed
Skip erlang.mk dependencies when building mix dependencies.
Some dependencies will be archived by erlang.mk itself, so there is no point in rebuilding them using archive.build.deps Using the new --skip switch we can skip archives already built and also rabbit application itself. [Fixes #191]
1 parent be18e6d commit 05ea2bc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mk/rabbitmq-dist.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dist_verbose = $(dist_verbose_$(V))
99

1010
MIX_ARCHIVES ?= $(HOME)/.mix/archives
1111

12-
MIX_TASK_ARCHIVE_DEPS_VERSION = 0.3.0
12+
MIX_TASK_ARCHIVE_DEPS_VERSION = 0.4.0
1313
mix_task_archive_deps = $(MIX_ARCHIVES)/mix_task_archive_deps-$(MIX_TASK_ARCHIVE_DEPS_VERSION)
1414

1515
# We take the version of an Erlang application from the .app file. This
@@ -64,6 +64,8 @@ $$(dist_$(1)_ez): $$(patsubst %,$(3)/%, \
6464
APP=$(1) VSN=$(2) EZ_DIR=$$(abspath $$(dist_$(1)_ez_dir))))
6565
endif
6666

67+
ERLANGMK_DIST_APPS += $(1)
68+
6769
ERLANGMK_DIST_EZS += $$(dist_$(1)_ez)
6870

6971
endef
@@ -76,7 +78,7 @@ endef
7678
define get_mix_project_dep_ezs
7779
$(shell cd $(1) && \
7880
$(MIX) do deps.get, deps.compile, compile >/dev/null && \
79-
$(MIX) archive.build.all.list -e -o $(DIST_DIR))
81+
$(MIX) archive.build.all.list -e -o $(DIST_DIR) --skip "rabbit $(ERLANGMK_DIST_APPS)")
8082
endef
8183

8284
define do_ez_target_mix
@@ -177,7 +179,7 @@ $(ERLANGMK_DIST_EZS):
177179
$(MIX_DIST_EZS): $(mix_task_archive_deps)
178180
$(verbose) cd $(SRC_DIR) && \
179181
$(MIX) do deps.get, deps.compile, compile, archive.build.all \
180-
-e -o $(abspath $(DIST_DIR))
182+
-e -o $(abspath $(DIST_DIR)) --skip "rabbit $(ERLANGMK_DIST_APPS)"
181183

182184
MIX_TASK_ARCHIVE_DEPS_URL = https://github.com/hairyhum/mix_task_archive_deps/releases/download/$(MIX_TASK_ARCHIVE_DEPS_VERSION)/mix_task_archive_deps-$(MIX_TASK_ARCHIVE_DEPS_VERSION).ez
183185

0 commit comments

Comments
 (0)