-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 763 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (32 loc) · 763 Bytes
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
.PHONY: all deps compile dialyze wait test console clean clean-db
APPS = dialyzer.apps
PLT = apps.plt
DB_HOST = localhost
DB_PORT = 9042
TIMEOUT = 15
all: deps compile
deps:
@ rebar get-deps
compile:
@ rebar compile
dialyze: compile $(PLT)
@ echo "==> (dialyze)"
@ dialyzer --plt $(PLT) ebin \
-Wunmatched_returns \
-Wno_undefined_callbacks
$(PLT): dialyzer.apps
@ echo "==> (dialyze)"
@ printf "Building $(PLT) file..."
@- dialyzer -q --build_plt --output_plt $(PLT) \
--apps $(shell cat $(APPS))
@ echo " done"
wait:
@ ./scripts/wait.escript $(DB_HOST) $(DB_PORT) $(TIMEOUT)
test: compile wait
@ rebar skip_deps=true ct
console: compile
@ erl -pa ebin deps/*/ebin
clean:
@ rebar clean
clean-db:
@ (cd scripts; ./clean.escript)