-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (44 loc) · 1.06 KB
/
Makefile
File metadata and controls
55 lines (44 loc) · 1.06 KB
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
all: build
.PHONY: build
build:
rebar3 compile
.PHONY: docs
docs:
rebar3 ex_doc
.PHONY: json-docs
json-docs:
escript scripts/generate_json_docs.escript --output src/JSON_FORMAT.md
.PHONY: clean
clean:
rebar3 clean
@rm -rf doc
.PHONY: fresh
fresh: clean
rm -rf _build
.PHONY: test
test: all check-no-change-action
rebar3 fmt --check
rebar3 lint
rebar3 xref
rebar3 dialyzer
rebar3 ct
rebar3 do cover, covertool generate
.PHONY: format
format: build
rebar3 fmt
.PHONY: lint
lint: build
rebar3 lint
# Will capture any reference to "(?i)RFC[\\s-]?(\\d+)" in src and include files.
# It runs on CI. When adding support for new RFCs, you should add any reference to it it code
# and regenerate the RFC list with `make rfc-list`.
.PHONY: rfc-list
rfc-list:
./scripts/generate_rfc_list.escript --output ./SUPPORTED_RFCs.md
.PHONY: rfc-list-print
rfc-list-print:
./scripts/generate_rfc_list.escript
.PHONY: check-no-change-action
check-no-change-action: rfc-list json-docs
git diff --quiet --exit-code src/JSON_FORMAT.md
git diff --quiet --exit-code SUPPORTED_RFCS.md