-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
60 lines (42 loc) · 1.18 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
PROJECT := erlcql_cluster
ERL := erl
EPATH = -pa ebin -pz deps/*/ebin
TEST_EPATH = -pz deps/*/ebin -I deps/proper/include -pa ebin -pa test
PLT_APPS = $(shell ls $(ERL_LIB_DIR) | grep -v interface | sed -e 's/-[0-9.]*//')
DIALYZER_OPTS= -Wno_undefined_callbacks --fullpath
.PHONY: all build_plt compile configure console deps doc clean depclean distclean dialyze release telstart test test-console
all:
@./rebar skip_deps=true compile
build_plt:
@dialyzer --build_plt --apps $(PLT_APPS)
compile:
@./rebar compile
compile-fast:
@./rebar skip_deps=true compile
configure:
@./rebar get-deps compile
console:
$(ERL) -sname $(PROJECT) $(EPATH)
deps:
@./rebar get-deps update-deps
doc:
@./rebar skip_deps=true doc
clean:
@./rebar skip_deps=true clean
stress: compile
@erlc -o ./stress ./stress/stress.erl
@$(ERL) -sname $(PROJECT) $(EPATH) -pa stress
depclean:
@./rebar clean
distclean:
@./rebar clean delete-deps
@rm -rf logs
dialyze:
@dialyzer $(DIALYZER_OPTS) -r ebin
start:
$(ERL) -sname $(PROJECT) $(EPATH) -s $(PROJECT)
test:
@./rebar skip_deps=true ct verbose=1
test-console: test-compile
@erlc $(TEST_EPATH) -o test test/*.erl
$(ERL) -sname $(PROJECT)_test $(TEST_EPATH)