Skip to content

Commit ba0d28c

Browse files
author
Loïc Hoguin
committed
make: Don't run Elixir inconditionally in top-level Makefile
We only need Elixir libs in ERL_LIBS for `xref` so don't do this work if we're not running `xref`. make nope 0,55s user 0,23s system 274% cpu 0,283 total make nope 0,05s user 0,03s system 105% cpu 0,070 total
1 parent 5d731ae commit ba0d28c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ DEP_PLUGINS = rabbit_common/mk/rabbitmq-dist.mk \
2929

3030
DISABLE_DISTCLEAN = 1
3131

32+
ifeq ($(filter-out xref,$(MAKECMDGOALS)),)
3233
XREF_SCOPE = app deps
3334

3435
# We add all the applications that are in non-standard paths
@@ -47,6 +48,7 @@ XREF_IGNORE = [ \
4748

4849
# Include Elixir libraries in the Xref checks.
4950
xref: ERL_LIBS := $(ERL_LIBS):$(CURDIR)/apps:$(CURDIR)/deps:$(dir $(shell elixir --eval ":io.format '~s~n', [:code.lib_dir :elixir ]"))
51+
endif
5052

5153
ifneq ($(wildcard deps/.hex/cache.erl),)
5254
deps:: restore-hex-cache-ets-file

0 commit comments

Comments
 (0)