-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
49 lines (34 loc) · 825 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
.DEFAULT_GOAL := test
REBAR=rebar3
.PHONY: compile
compile:
$(REBAR) compile
.PHONY: test
test: compile
$(REBAR) eunit
$(REBAR) ct
# EQC
eqc-ci: compile
erlc -o ebin eqc_test/*.erl
# Deps directory.
DEPS_DIR ?= $(CURDIR)/deps
export DEPS_DIR
REBAR_DEPS_DIR = $(DEPS_DIR)
export REBAR_DEPS_DIR
ALL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DEPS))
ALL_TEST_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(TEST_DEPS))
# Dialyzer.
PLT_APPS = sasl
DIALYZER_PLT ?= $(CURDIR)/.$(PROJECT).plt
export DIALYZER_PLT
PLT_APPS ?=
DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions \
-Wunmatched_returns # -Wunderspecs
.PHONY: build-plt
build-plt: compile
@dialyzer --build_plt --apps erts kernel stdlib $(PLT_APPS) $(ALL_DEPS_DIRS)
dialyze:
@dialyzer --src src --no_native $(DIALYZER_OPTS)
default: test
clean:
$(REBAR) clean