forked from kafka4beam/brod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (33 loc) · 913 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 compile docs check test clean plt dialyze
REBAR ?= $(shell which rebar 2> /dev/null || which ./rebar)
DIALYZER_PLT = ./brod.plt
DIALYZER_OPTS = --fullpath --no_native -Werror_handling -Wrace_conditions -Wunderspecs -Wno_opaque -Wno_return -Wno_match -Wno_unused --plt $(DIALYZER_PLT)
PLT_APPS = erts kernel stdlib
all: compile
compile:
@$(REBAR) compile
docs:
@$(REBAR) skip_deps=true doc
check: compile plt dialyze
get-deps:
$(REBAR) get-deps
test: REBAR := BROD_TEST=1 $(REBAR)
test:
$(REBAR) get-deps
$(REBAR) compile
$(REBAR) eunit -v apps=brod
clean:
@$(RM) -rf deps
@$(REBAR) clean
@$(RM) doc/*
@$(RM) -f $(DIALYZER_PLT)
plt: $(DIALYZER_PLT)
$(DIALYZER_PLT):
dialyzer --build_plt --apps $(PLT_APPS) ebin --output_plt $(DIALYZER_PLT)
dialyze: $(DIALYZER_PLT)
dialyzer -r ebin $(DIALYZER_OPTS)
xref: compile
$(REBAR) xref
escriptize: compile
@$(REBAR) escriptize
# eof