-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (33 loc) · 865 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
REBAR = $(shell which rebar3 || echo ./rebar3)
ifdef REBAR_PROFILE
PROFILE = $(REBAR_PROFILE)
else
PROFILE = default
endif
BUILD_ROOT = ./_build/$(PROFILE)/lib
BUILD_PATH = $(BUILD_ROOT)/*/ebin
CONFIG ?= test/test.config
CT_OPTS = -cover test/cover.spec -erl_args -config ${CONFIG}
CT_SUITES = cacherl_SUITE
.PHONY: all compile clean distclean dialyze tests shell doc
all: compile
compile:
$(REBAR) compile
dist:
REBAR_PROFILE=dist $(REBAR) compile
clean:
rm -rf ebin/* test/*.beam logs log
$(REBAR) clean
distclean: clean
$(REBAR) clean --all
rm -rf _build logs log edoc *.dump c_src/*.o priv/*.so
dialyze:
$(REBAR) dialyzer
tests: compile
mkdir -p logs
ct_run -dir test -suite $(CT_SUITES) -pa $(BUILD_PATH) -logdir logs $(CT_OPTS)
rm -rf test/*.beam
shell: compile
erl -pa $(BUILD_PATH) -s cacherl -config ${CONFIG}
edoc:
$(REBAR) edoc