-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
48 lines (34 loc) · 772 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
47
48
REL_FILES_DIR?=rel/files
ERL?=erl
REBAR?=./rebar
ERL_OPTS+=-pa ebin -pa deps/*/ebin -bool start_sasl -config $(REL_FILES_DIR)/sys.config
all: compile
compile: deps
$(REBAR) compile
doc:
$(REBAR) doc
node: generate
rel/qerl/bin/qerl console
start:
rel/qerl/bin/qerl console
start_debug: compile
$(ERL) $(ERL_OPTS) -s qerl -eval 'debugger:start().'
test:
$(REBAR) compile
$(REBAR) skip_deps=true eunit
# Run all tests (including testing the deps)
test_all:
$(REBAR) eunit
generate: compile
$(REBAR) generate -f
release: generate
tar -czf qerl.tar.gz rel/qerl
dialyzer:
dialyzer -q -n ebin -Wunmatched_returns -Werror_handling \
-Wrace_conditions > dialyzer_warnings
.PHONY: deps
deps:
mkdir deps || true
$(REBAR) get-deps
clean:
$(REBAR) clean