forked from Feuerlabs/exometer_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (33 loc) · 944 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
.PHONY: all clean clean_plt deps compile test doc dialyzer xref ci
EXOMETER_PLT=exometer_core.plt
DIALYZER_OPTS = # -Wunderspecs
DIALYZER_APPS = erts kernel stdlib compiler syntax_tools \
test_server common_test lager goldrush folsom \
parse_trans setup
all: deps compile xref test
ci: compile xref dialyzer test
deps:
rebar get-deps
compile:
rebar compile
clean: clean_plt
rebar clean
clean-all: clean
rm -rf deps
test:
ERL_LIBS=./examples rebar ct skip_deps=true
xref:
ERL_LIBS=./deps rebar xref skip_deps=true
edown_deps:
rebar get-deps compile edown=true
doc: edown_deps
rebar doc edown=true skip_deps=true
$(EXOMETER_PLT):
rebar get-deps compile
ERL_LIBS=deps dialyzer --build_plt --output_plt $(EXOMETER_PLT) \
--apps $(DIALYZER_APPS)
clean_plt:
rm -f $(EXOMETER_PLT)
dialyzer: deps compile $(EXOMETER_PLT)
dialyzer -r ebin --plt $(EXOMETER_PLT) $(DIALYZER_OPTS) | \
fgrep -v -f ./dialyzer.ignore-warnings