aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2022-05-31 12:31:48 +0200
committerLoïc Hoguin <[email protected]>2022-05-31 12:31:48 +0200
commit9e7c9f9e0628ee9d84ade4b4de85c2a5e7af7452 (patch)
tree4e60f8731ceed1d40ecf63bf5c9e3815279f79aa
parenta310407e0a60b24ef47b5f16d866668a53f7806e (diff)
downloaderlang.mk-9e7c9f9e0628ee9d84ade4b4de85c2a5e7af7452.tar.gz
erlang.mk-9e7c9f9e0628ee9d84ade4b4de85c2a5e7af7452.tar.bz2
erlang.mk-9e7c9f9e0628ee9d84ade4b4de85c2a5e7af7452.zip
xref: Better handling of app scope
-rw-r--r--plugins/xref.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/xref.mk b/plugins/xref.mk
index 6c7cd5b..27d66d2 100644
--- a/plugins/xref.mk
+++ b/plugins/xref.mk
@@ -22,7 +22,7 @@ XREF_CHECKS ?= [undefined_function_calls]
# application directories, being essentially an easy way
# to configure which applications to analyze. With:
#
-# - app: ../$(PROJECT)
+# - app: .
# - apps: $(ALL_APPS_DIRS)
# - deps: $(ALL_DEPS_DIRS)
# - otp: Built-in Erlang/OTP applications.
@@ -80,7 +80,7 @@ define xref.erl
end,
AppDirs = case lists:member(app, Scope) of
false -> AppDirs3;
- true -> ["../$(PROJECT)"|AppDirs3]
+ true -> ["../$(notdir $(CURDIR))"|AppDirs3]
end,
[{ok, _} = xref:add_application(Xref, AppDir, [{builtins, true}]) || AppDir <- AppDirs],
ExtraDirs = [$(call comma_list,$(foreach d,$(XREF_EXTRA_DIRS),"$d"))],