forked from tolbrino/exometer_lager
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (33 loc) · 1010 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 clean-all edown_deps
EXOMETER_PLT = exometer_lager.plt
DIALYZER_OPTS = # -Wunderspecs
DIALYZER_APPS = erts kernel stdlib compiler syntax_tools snmp ssl ssh \
crypto public_key test_server webtool xmerl common_test \
lager goldrush afunix folsom mnesia parse_trans \
setup exometer_core hut
all: deps compile xref test
ci: deps compile xref test
deps:
rebar get-deps
compile:
rebar compile
clean: clean_plt
rebar clean
clean-all: clean
rm -rf deps
test:
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
.PHONY: $(EXOMETER_PLT)
$(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)