diff --git a/.gitignore b/.gitignore index d414033..941904e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ ebin deps *~ .eunit +/.fractal_btree.plt diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bbc4ea2 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +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 + +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 +