-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
64 lines (48 loc) · 1.44 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
54
55
56
57
58
59
60
61
62
63
64
REBAR=./rebar
ALL_APPS_DIRS=apps/*
ALL_EXAMPLE_DIRS=apps/examples/*
CT_LOG_DIRS=apps/ctest/logs
all: deps compile
deps: deps/erlangsp
deps/erlangsp:
@${REBAR} get-deps
compile:
@${REBAR} compile
dialyze: all
@dialyzer -Wrace_conditions ${ALL_APPS_DIRS}/ebin ${ALL_EXAMPLE_DIRS}/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 ${ALL_APPS_DIRS}/src/*.P
@rm -f ${ALL_APPS_DIRS}/src/*/*.P
@rm -f ${ALL_APPS_DIRS}/src/*.beam
@rm -f ${ALL_APPS_DIRS}/src/*/*.beam
@echo 'Removing all example compile artifacts'
@rm -f ${ALL_EXAMPLE_DIRS}/src/*.P
@rm -f ${ALL_EXAMPLE_DIRS}/src/*/*.P
@rm -f ${ALL_EXAMPLE_DIRS}/src/*.beam
@rm -f ${ALL_EXAMPLE_DIRS}/src/*/*.beam
@echo 'Removing all common_test logs'
@rm -rf ${CT_LOG_DIRS}/*.*
@rm -f ${CT_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/erlangsp
realclean: clean relclean
@${REBAR} del-deps
@rm -rf deps/*
test: all coop_test examples_test
coop_test: all
@(cd apps/ctest; ct_run -spec coop.spec -pa ../coop/ebin -pa ../../deps/*/ebin)
examples_test: all
@(cd apps/ctest; ct_run -spec examples.spec -pa ../coop/ebin -pa ../examples/*/ebin -pa ../../deps/*/ebin)
ct: coop_test
et: examples_test