2011-03-07 22:59:22 +01:00
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
2011-06-21 17:24:07 +02:00
|
|
|
DIALYZER = dialyzer
|
2011-04-03 16:00:22 +02:00
|
|
|
REBAR = rebar
|
2011-03-23 10:54:09 +01:00
|
|
|
|
2011-03-07 22:59:22 +01:00
|
|
|
all: app
|
|
|
|
|
2011-07-20 17:38:10 +02:00
|
|
|
app: deps
|
2011-03-23 10:54:09 +01:00
|
|
|
@$(REBAR) compile
|
2011-03-07 22:59:22 +01:00
|
|
|
|
2011-07-20 17:38:10 +02:00
|
|
|
deps:
|
|
|
|
@$(REBAR) get-deps
|
|
|
|
|
2011-03-07 22:59:22 +01:00
|
|
|
clean:
|
2011-03-23 10:54:09 +01:00
|
|
|
@$(REBAR) clean
|
2011-04-08 16:30:37 +02:00
|
|
|
rm -f test/*.beam
|
2011-03-07 22:59:22 +01:00
|
|
|
rm -f erl_crash.dump
|
|
|
|
|
2011-05-16 12:16:26 +02:00
|
|
|
tests: clean app eunit ct
|
2011-05-04 11:50:46 +02:00
|
|
|
|
|
|
|
eunit:
|
2011-07-26 10:46:06 +02:00
|
|
|
@$(REBAR) eunit skip_deps=true
|
2011-05-04 11:50:46 +02:00
|
|
|
|
|
|
|
ct:
|
2011-12-15 20:47:08 +01:00
|
|
|
@$(REBAR) ct skip_deps=true
|
2011-04-03 16:07:27 +02:00
|
|
|
|
2011-06-21 17:24:07 +02:00
|
|
|
build-plt:
|
|
|
|
@$(DIALYZER) --build_plt --output_plt .cowboy_dialyzer.plt \
|
|
|
|
--apps kernel stdlib sasl inets crypto public_key ssl
|
|
|
|
|
2011-04-03 16:07:27 +02:00
|
|
|
dialyze:
|
2011-12-16 01:26:19 +01:00
|
|
|
@$(DIALYZER) --src src --plt .cowboy_dialyzer.plt -Werror_handling \
|
2011-06-21 17:24:07 +02:00
|
|
|
-Wrace_conditions -Wunmatched_returns # -Wunderspecs
|
2011-07-06 17:42:20 +02:00
|
|
|
|
|
|
|
docs:
|
2011-10-05 16:06:50 +02:00
|
|
|
@$(REBAR) doc skip_deps=true
|