-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
53 lines (41 loc) · 1.04 KB
/
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
50
51
52
53
REBAR=rebar
COMMON_TEST=ctest
COMMON_TEST_LOG_DIRS=${COMMON_TEST}/logs
CT_DEPS=../deps
CT_TOP=../src
all: deps compile
deps: deps/erlangsp_app
deps/erlangsp_app:
@${REBAR} get-deps
compile:
@${REBAR} compile
dialyze: all
@dialyzer -Wrace_conditions ebin
gc: crash
@echo 'Removing all emacs backup files'
@find . -name "*~" -exec rm -f {} \;
@find . -name "erl_crash.dump" -exec rm -f {} \;
@echo 'Removing all compile artifacts'
@rm -f src/*.P
@rm -f src/*/*.P
@rm -f src/*.beam
@rm -f src/*/*.beam
@echo 'Removing all common_test beams'
@rm -f ${COMMON_TEST_TOP}/*/*.beam
@echo 'Removing all common_test logs'
@rm -rf ${COMMON_TEST_LOG_DIRS}/*.*
@rm -f ${COMMON_TEST_LOG_DIRS}/variables-ct*
rel: all
@echo 'Generating erlangsp release'
@(cd rel; ${REBAR} generate)
clean: gc
@${REBAR} clean
crash:
@find . -name "erl_crash.dump" -exec rm -f {} \;
relclean: crash
@rm -rf rel/esp_example
realclean: clean relclean
@${REBAR} del-deps
@rm -rf deps/*
test: all
@(cd ctest; ct_run -spec erlangsp_app.spec -pz ../ebin -pz ../deps/*/ebin)