2012-01-06 20:22:23 +00:00
|
|
|
REBAR = ./rebar
|
|
|
|
DIALYZER = dialyzer
|
|
|
|
|
|
|
|
.PHONY: plt analyze all deps compile get-deps clean
|
|
|
|
|
|
|
|
all: compile
|
|
|
|
|
2012-04-15 14:35:39 +00:00
|
|
|
deps: get-deps
|
|
|
|
|
2012-01-06 20:22:23 +00:00
|
|
|
get-deps:
|
|
|
|
@$(REBAR) get-deps
|
|
|
|
|
|
|
|
compile:
|
|
|
|
@$(REBAR) compile
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@$(REBAR) clean
|
|
|
|
|
2012-04-15 14:35:39 +00:00
|
|
|
test: eunit
|
|
|
|
|
2012-01-06 21:55:07 +00:00
|
|
|
eunit: compile clean-test-btrees
|
|
|
|
@$(REBAR) eunit skip_deps=true
|
|
|
|
|
2012-01-21 14:13:22 +00:00
|
|
|
eunit_console:
|
|
|
|
erl -pa .eunit deps/*/ebin
|
|
|
|
|
2012-01-06 21:55:07 +00:00
|
|
|
clean-test-btrees:
|
2012-01-06 23:58:57 +00:00
|
|
|
rm -fr .eunit/Btree_* .eunit/simple
|
2012-01-06 21:55:07 +00:00
|
|
|
|
2012-01-06 20:22:23 +00:00
|
|
|
plt: compile
|
2012-04-21 19:20:39 +00:00
|
|
|
$(DIALYZER) --build_plt --output_plt .hanoi.plt \
|
2012-01-06 20:22:23 +00:00
|
|
|
-pa deps/plain_fsm/ebin \
|
|
|
|
-pa deps/ebloom/ebin \
|
|
|
|
deps/plain_fsm/ebin \
|
|
|
|
deps/ebloom/ebin \
|
|
|
|
--apps kernel stdlib
|
|
|
|
|
|
|
|
analyze: compile
|
2012-04-21 19:20:39 +00:00
|
|
|
$(DIALYZER) --plt .hanoi.plt \
|
2012-01-06 20:22:23 +00:00
|
|
|
-pa deps/plain_fsm/ebin \
|
|
|
|
-pa deps/ebloom/ebin \
|
|
|
|
ebin
|
|
|
|
|
2012-04-15 14:35:39 +00:00
|
|
|
repl:
|
|
|
|
elr -pz deps/*/ebin -pa ebin
|