-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
51 lines (35 loc) · 1009 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
49
50
51
REBAR = @$(shell pwd)/rebar
APP_NAME = guinea
all: xref
dependencies:
@${REBAR} get-deps
applications: dependencies
@${REBAR} compile
test:
@${REBAR} eunit skip_deps=true
xref: applications
@${REBAR} skip_deps=true xref
dialyzer:
@dialyzer --plt .@${APP_NAME}.plt -r apps \
-Wrace_conditions -Wunderspecs -Wspecdiffs
plt: applications
@dialyzer --output_plt .@${APP_NAME}.plt --build_plt --apps \
erts kernel stdlib crypto sasl ssl inets xmerl public_key compiler \
tools runtime_tools deps/*/ebin
# Cleaning tasks:
depclean:
@rm -rf deps/*
clean:
$(REBAR) clean skip_deps=true
allclean: depclean
@${REBAR} clean
# Other tasks:
start: applications
erl -pa deps/*/ebin ebin -boot start_sasl \
-eval "app_util:dev_start(@${APP_NAME}, permanent)."
fastcompile:
@$(REBAR) skip_deps=true compile
faststart: fastcompile
erl -pa deps/*/ebin ebin -boot start_sasl \
-eval "app_util:dev_start(@${APP_NAME}, permanent)."
.PHONY: all test dialyzer clean allclean dependencies start