summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-04-30 20:41:46 +0200
committerBadlop <badlop@process-one.net>2022-05-02 13:20:52 +0200
commit7a1e0d472072e9d96c4c6af2b09c0accc45cd70a (patch)
tree7423c5c16920587752cf05f6dfcecb1356eaa5f5 /Makefile.in
parentSwitch "make rel" and "make dev" to paths: conf, database, logs (diff)
Fix 'make xref' when using Mix; notice it only checks Elixir files
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 13f7b556..16e713eb 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -111,6 +111,7 @@ ifeq "$(REBAR_VER)" "6"
GET_DEPS= deps.get
CONFIGURE_DEPS=
EBINDIR=$(DEPSDIR)/ejabberd/ebin
+ XREFOPTIONS=graph
REBARREL=MIX_ENV=prod $(REBAR) release --overwrite
REBARDEV=MIX_ENV=dev $(REBAR) release --overwrite
RELIVECMD=escript rel/relive.escript && MIX_ENV=dev RELIVE=true iex --name ejabberd@localhost -S mix run
@@ -129,6 +130,7 @@ endif
GET_DEPS= get-deps
CONFIGURE_DEPS=$(REBAR) configure-deps
EBINDIR=$(DEPSDIR)/ejabberd/ebin
+ XREFOPTIONS=
REBARREL=$(REBAR) as prod tar
REBARDEV=REBAR_PROFILE=dev $(REBAR) release
RELIVECMD=$(REBAR) relive
@@ -142,6 +144,7 @@ else
GET_DEPS= get-deps
CONFIGURE_DEPS=$(REBAR) configure-deps
EBINDIR=ebin
+ XREFOPTIONS=
REBARREL=$(REBAR) generate
REBARDEV=
RELIVECMD=@echo "Rebar2 detected... relive not supported.\
@@ -172,7 +175,7 @@ update:
$(REBAR) $(UPDATEDEPS) && :> $(DEPSDIR)/.got
xref: all
- $(REBAR) $(SKIPDEPS) xref
+ $(REBAR) $(SKIPDEPS) xref $(XREFOPTIONS)
hooks: all
tools/hook_deps.sh $(EBINDIR)