-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
91 lines (72 loc) · 4.47 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export ERL_FLAGS = -enable-feature maybe_expr # needed for katana-code under OTP 25
.PHONY: all build clean check
.PHONY: xref hank-dead-code-cleaner elvis-linter dialyzer
.PHONY: test cover
.PHONY: shell console doc-dry publish
.NOTPARALLEL: check cover test
all: build
build:
@rebar3 compile
clean:
@rebar3 clean
check: xref hank-dead-code-cleaner elvis-linter dialyzer
xref:
@rebar3 xref
hank-dead-code-cleaner:
@if rebar3 plugins list | grep '^rebar3_hank\>' >/dev/null; then \
rebar3 hank; \
else \
echo >&2 "WARN: skipping rebar3_hank check"; \
fi
elvis-linter:
@if rebar3 plugins list | grep '^rebar3_lint\>' >/dev/null; then \
rebar3 lint; \
else \
echo >&2 "WARN: skipping rebar3_lint check"; \
fi
dialyzer:
@rebar3 dialyzer
test: test/erlzord_tests.erl
@rebar3 do eunit, ct, cover
cover: test
test/erlzord_tests.erl:
./support/test_cases/generate_code.py support/test_cases/test_data/*.data test/erlzord_tests.erl
test-data: clean-test-data
./support/test_cases/generate_data.py 1 0 7 >support/test_cases/test_data/1dim_from_0_to_7.data
./support/test_cases/generate_data.py 2 0 7 >support/test_cases/test_data/2dim_from_0_to_7.data
./support/test_cases/generate_data.py 3 0 7 >support/test_cases/test_data/3dim_from_0_to_7.data
./support/test_cases/generate_data.py 4 0 7 >support/test_cases/test_data/4dim_from_0_to_7.data
./support/test_cases/generate_data.py 5 0 7 >support/test_cases/test_data/5dim_from_0_to_7.data
./support/test_cases/generate_data.py 10 0 7 >support/test_cases/test_data/10dim_from_0_to_7.data
./support/test_cases/generate_data.py 30 0 7 >support/test_cases/test_data/30dim_from_0_to_7.data
./support/test_cases/generate_data.py 1 0 100 >support/test_cases/test_data/1dim_from_0_to_100.data
./support/test_cases/generate_data.py 2 0 100 >support/test_cases/test_data/2dim_from_0_to_100.data
./support/test_cases/generate_data.py 3 0 100 >support/test_cases/test_data/3dim_from_0_to_100.data
./support/test_cases/generate_data.py 4 0 100 >support/test_cases/test_data/4dim_from_0_to_100.data
./support/test_cases/generate_data.py 5 0 100 >support/test_cases/test_data/5dim_from_0_to_100.data
./support/test_cases/generate_data.py 10 0 100 >support/test_cases/test_data/10dim_from_0_to_100.data
./support/test_cases/generate_data.py 30 0 100 >support/test_cases/test_data/30dim_from_0_to_100.data
./support/test_cases/generate_data.py 1 0 123456789 >support/test_cases/test_data/1dim_from_0_to_123456789.data
./support/test_cases/generate_data.py 2 0 123456789 >support/test_cases/test_data/2dim_from_0_to_123456789.data
./support/test_cases/generate_data.py 3 0 123456789 >support/test_cases/test_data/3dim_from_0_to_123456789.data
./support/test_cases/generate_data.py 4 0 123456789 >support/test_cases/test_data/4dim_from_0_to_123456789.data
./support/test_cases/generate_data.py 5 0 123456789 >support/test_cases/test_data/5dim_from_0_to_123456789.data
./support/test_cases/generate_data.py 10 0 123456789 >support/test_cases/test_data/10dim_from_0_to_123456789.data
./support/test_cases/generate_data.py 30 0 123456789 >support/test_cases/test_data/30dim_from_0_to_123456789.data
./support/test_cases/generate_data.py 1 -123456789 54321 >support/test_cases/test_data/1dim_from_-123456789_to_54321.data
./support/test_cases/generate_data.py 2 -123456789 54321 >support/test_cases/test_data/2dim_from_-123456789_to_54321.data
./support/test_cases/generate_data.py 3 -123456789 54321 >support/test_cases/test_data/3dim_from_-123456789_to_54321.data
./support/test_cases/generate_data.py 4 -123456789 54321 >support/test_cases/test_data/4dim_from_-123456789_to_54321.data
./support/test_cases/generate_data.py 5 -123456789 54321 >support/test_cases/test_data/5dim_from_-123456789_to_54321.data
./support/test_cases/generate_data.py 10 -123456789 54321 >support/test_cases/test_data/10dim_from_-123456789_to_54321.data
./support/test_cases/generate_data.py 30 -123456789 54321 >support/test_cases/test_data/30dim_from_-123456789_to_54321.data
clean-test-data:
rm support/test_cases/test_data/*.data
shell: export ERL_FLAGS = +pc unicode
shell:
@rebar3 as shell shell
console: shell
doc-dry:
@rebar3 hex build
publish:
@rebar3 hex publish