de8d09231e
This is not the "right" way to do it since it should be internalized, but for a start it will do until we fix it.
36 lines
607 B
Makefile
36 lines
607 B
Makefile
REBAR = ./rebar
|
|
DIALYZER = dialyzer
|
|
|
|
.PHONY: plt analyze all deps compile get-deps clean
|
|
|
|
all: compile
|
|
|
|
get-deps:
|
|
@$(REBAR) get-deps
|
|
|
|
compile:
|
|
@$(REBAR) compile
|
|
|
|
clean:
|
|
@$(REBAR) clean
|
|
|
|
eunit: compile clean-test-btrees
|
|
@$(REBAR) eunit skip_deps=true
|
|
|
|
clean-test-btrees:
|
|
rm -fr .eunit/Btree_*
|
|
|
|
plt: compile
|
|
$(DIALYZER) --build_plt --output_plt .fractal_btree.plt \
|
|
-pa deps/plain_fsm/ebin \
|
|
-pa deps/ebloom/ebin \
|
|
deps/plain_fsm/ebin \
|
|
deps/ebloom/ebin \
|
|
--apps kernel stdlib
|
|
|
|
analyze: compile
|
|
$(DIALYZER) --plt .fractal_btree.plt \
|
|
-pa deps/plain_fsm/ebin \
|
|
-pa deps/ebloom/ebin \
|
|
ebin
|
|
|