-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use logger instead of lager - Migrate to rebar3 - Remove (broken) benchmarking support - Fix dialyzer errors - Update Makefile
- Loading branch information
Showing
15 changed files
with
57 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,7 @@ doc/edoc-info | |
doc/doc | ||
tests/ | ||
/erl_cache | ||
/_build | ||
/.erl_cache.plt | ||
/TEST* | ||
/rebar.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,36 @@ | ||
REBAR ?= rebar | ||
REBAR ?= rebar3 | ||
ifneq ($(wildcard rebar),) | ||
REBAR := ./rebar | ||
REBAR := ./rebar3 | ||
endif | ||
|
||
.PHONY: clean test docs benchmark docsclean go quick dialyzer | ||
.PHONY: clean test docs docsclean go compile get-deps dialyzer | ||
|
||
all: get-deps compile | ||
|
||
get-deps: | ||
$(REBAR) get-deps | ||
|
||
compile: | ||
$(REBAR) compile | ||
$(REBAR) skip_deps=true xref | ||
|
||
quick: | ||
$(REBAR) skip_deps=true compile | ||
$(REBAR) skip_deps=true xref | ||
$(REBAR) compile xref | ||
|
||
clean: | ||
$(REBAR) clean | ||
rm -f erl_cache | ||
rm -fr _build | ||
|
||
test: compile | ||
$(REBAR) skip_deps=true eunit | ||
$(REBAR) eunit --cover | ||
|
||
docs: docsclean | ||
ln -s . doc/doc | ||
$(REBAR) skip_deps=true doc | ||
$(REBAR) edoc | ||
|
||
docsclean: | ||
rm -f doc/*.html doc/*.css doc/erlang.png doc/edoc-info doc/doc | ||
|
||
go: | ||
erl -name erl_cache -pa deps/*/ebin -pa ebin/ -s erl_cache start ${EXTRA_ARGS} | ||
|
||
dialyzer: | ||
dialyzer -c ebin/ -Wunmatched_returns -Werror_handling -Wrace_conditions | ||
$(REBAR) shell | ||
|
||
erl_cache: | ||
REBAR_BENCH=1 $(REBAR) get-deps compile | ||
REBAR_BENCH=1 $(REBAR) escriptize skip_deps=true | ||
.erl_cache.plt: | ||
dialyzer --output_plt $@ --build_plt --apps erts kernel stdlib | ||
|
||
benchmark: erl_cache quick | ||
./erl_cache priv/bench.conf | ||
dialyzer: .erl_cache.plt compile | ||
dialyzer --plt $< -c _build/default/deps/erl_cache/ebin/ -Wunknown -Wunmatched_returns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.