2024-07-18 08:25:32 +00:00
|
|
|
REBAR= rebar3
|
2012-06-19 14:00:06 +00:00
|
|
|
DIALYZER= dialyzer
|
|
|
|
|
2012-01-06 20:22:23 +00:00
|
|
|
|
|
|
|
.PHONY: plt analyze all deps compile get-deps clean
|
|
|
|
|
2014-11-18 23:07:33 +00:00
|
|
|
all: get-deps compile
|
2012-01-06 20:22:23 +00:00
|
|
|
|
2014-11-14 17:47:38 +00:00
|
|
|
deps: get-deps compile
|
2012-04-15 14:35:39 +00:00
|
|
|
|
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-09-26 13:11:55 +00:00
|
|
|
-pa deps/snappy/ebin \
|
2014-11-28 15:22:20 +00:00
|
|
|
-pa deps/snappy/ebin \
|
|
|
|
-pa deps/lz4/ebin \
|
|
|
|
-pa deps/ebloom/ebin \
|
2012-01-06 20:22:23 +00:00
|
|
|
-pa deps/plain_fsm/ebin \
|
|
|
|
deps/plain_fsm/ebin \
|
2014-11-28 15:22:20 +00:00
|
|
|
--apps erts kernel stdlib ebloom lz4 snappy
|
2012-01-06 20:22:23 +00:00
|
|
|
|
|
|
|
analyze: compile
|
2012-04-21 19:20:39 +00:00
|
|
|
$(DIALYZER) --plt .hanoi.plt \
|
2012-09-26 13:11:55 +00:00
|
|
|
-pa deps/snappy/ebin \
|
2014-11-28 15:22:20 +00:00
|
|
|
-pa deps/lz4/ebin \
|
|
|
|
-pa deps/ebloom/ebin \
|
2012-01-06 20:22:23 +00:00
|
|
|
-pa deps/plain_fsm/ebin \
|
|
|
|
ebin
|
|
|
|
|
2012-09-26 13:11:55 +00:00
|
|
|
analyze-nospec: compile
|
|
|
|
$(DIALYZER) --plt .hanoi.plt \
|
|
|
|
-pa deps/plain_fsm/ebin \
|
|
|
|
--no_spec \
|
|
|
|
ebin
|
|
|
|
|
2012-04-15 14:35:39 +00:00
|
|
|
repl:
|
2012-06-14 17:03:55 +00:00
|
|
|
erl -pz deps/*/ebin -pa ebin
|