Merge pull request #193 from zuav/master

Fix lager_console_backend:is_new_style_console_available() function
diff --git a/rebar.config b/rebar.config
index 3eb95fa..6460605 100644
--- a/rebar.config
+++ b/rebar.config
@@ -5,5 +5,8 @@
             {git, "git://github.com/DeadZen/goldrush.git", {tag, "0.1.6"}}}
        ]}.
 
+{xref_checks, []}.
+{xref_queries, [{"(XC - UC) || (XU - X - B - lager_default_tracer : Mod)", []}]}.
+
 {cover_enabled, true}.
 {edoc_opts, [{stylesheet_file, "./priv/edoc.css"}]}.
diff --git a/tools.mk b/tools.mk
index 82a0669..8e0e1b9 100644
--- a/tools.mk
+++ b/tools.mk
@@ -4,6 +4,9 @@
 docs:
 	./rebar doc skip_deps=true
 
+xref: compile
+	./rebar xref skip_deps=true
+
 PLT ?= $(HOME)/.riak_combo_dialyzer_plt
 LOCAL_PLT = .local_dialyzer_plt
 DIALYZER_FLAGS ?= -Wunmatched_returns