aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7678009..04f12d7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
# See LICENSE for licensing information.
+DIALYZER = dialyzer
REBAR = rebar
all: app
@@ -20,5 +21,11 @@ eunit:
ct:
@$(REBAR) ct
+build-plt:
+ @$(DIALYZER) --build_plt --output_plt .cowboy_dialyzer.plt \
+ --apps kernel stdlib sasl inets crypto public_key ssl
+
dialyze:
- @$(REBAR) dialyze
+ @$(DIALYZER) --src src --plt .cowboy_dialyzer.plt \
+ -Wbehaviours -Werror_handling \
+ -Wrace_conditions -Wunmatched_returns # -Wunderspecs