forked from alertlogic/erl-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (33 loc) · 868 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
REBAR ?= rebar
ifneq ($(wildcard rebar),)
REBAR := ./rebar
endif
.PHONY: clean test docs benchmark docsclean go quick 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
clean:
$(REBAR) clean
rm -f erl_cache
test: compile
$(REBAR) skip_deps=true eunit
docs: docsclean
ln -s . doc/doc
$(REBAR) skip_deps=true doc
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
erl_cache:
REBAR_BENCH=1 $(REBAR) get-deps compile
REBAR_BENCH=1 $(REBAR) escriptize skip_deps=true
benchmark: erl_cache quick
./erl_cache priv/bench.conf