summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-07-18 12:44:27 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-07-18 12:44:27 +0100
commit1c84e3810da06a9abea084359e6b3107ea4c39e6 (patch)
treecf33e010b64019b3d4d988b9ba3af32281ddaa5b /Makefile
parent4390c4e4b3bd5c3f29300417865774a9a2c8b409 (diff)
parentec6cab4e262ee653d7db75e084f38e34bbd3b08a (diff)
downloadrabbitmq-server-1c84e3810da06a9abea084359e6b3107ea4c39e6.tar.gz
Merge bug24998
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3681a787..f3729cfa 100644
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,7 @@ endif
all: $(TARGETS)
-.PHONY: plugins
+.PHONY: plugins check-xref
ifneq "$(PLUGINS_SRC_DIR)" ""
plugins:
[ -d "$(PLUGINS_SRC_DIR)/rabbitmq-server" ] || ln -s "$(CURDIR)" "$(PLUGINS_SRC_DIR)/rabbitmq-server"
@@ -111,9 +111,19 @@ plugins:
PLUGINS_SRC_DIR="" $(MAKE) -C "$(PLUGINS_SRC_DIR)" plugins-dist PLUGINS_DIST_DIR="$(CURDIR)/$(PLUGINS_DIR)" VERSION=$(VERSION)
echo "Put your EZs here and use rabbitmq-plugins to enable them." > $(PLUGINS_DIR)/README
rm -f $(PLUGINS_DIR)/rabbit_common*.ez
+
+# add -q to remove printout of warnings....
+check-xref: $(BEAM_TARGETS) $(PLUGINS_DIR)
+ rm -rf lib
+ ./check_xref $(PLUGINS_DIR) -q
+
else
plugins:
# Not building plugins
+
+check-xref:
+ $(info xref checks are disabled)
+
endif
$(DEPS_FILE): $(SOURCES) $(INCLUDES)