summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2012-06-21 10:45:34 +0100
committerTim Watson <tim@rabbitmq.com>2012-06-21 10:45:34 +0100
commit58351e5fa31ff2267d912913df12d126af886d1d (patch)
treeda93f1f919b944e7f8b07fba351041729ef24dcb /Makefile
parent8439d39f7ab1666517467c9d07624001a605cdd6 (diff)
downloadrabbitmq-server-58351e5fa31ff2267d912913df12d126af886d1d.tar.gz
Run additional xref checks in the broker when plugins-src is available.
Output full paths and line numbers for analysis. Differentiate between warnings and error where appropriate.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 49bf926a..b637edc8 100644
--- a/Makefile
+++ b/Makefile
@@ -111,9 +111,17 @@ 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 # just in case!
+ ./check_xref $(PLUGINS_DIR)
+
else
plugins:
# Not building plugins
+check-xref:
+# No xref checks enabled
endif
$(DEPS_FILE): $(SOURCES) $(INCLUDES)