-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
81 lines (53 loc) · 1.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
.DEFAULT_GOAL := help
.PHONY: develop-py develop-js develop-rust develop build-js build-py build-rust build lint-py lint-js lint-rust lint fix-py fix-js fix-rust fix checks-py checks-js checks-rust checks tests-py tests-js tests-rust tests test tests-ci help
develop-py:
make -C python develop
develop-js:
cd js; yarn
develop-rust:
make -C rust develop
develop: develop-rust develop-js develop-py ## Setup project for development
build-js:
cd js; yarn build
build-py:
make -C python build
build-rust:
make -C rust build
build: build-rust build-js build-py ## Build the project
lint-py:
make -C python lint
lint-js:
cd js; yarn lint
lint-rust:
make -C rust lint
lint: lint-rust lint-js lint-py ## Run project linters
fix-py:
make -C python fix
fix-js:
cd js; yarn fix
fix-rust:
make -C rust fix
fix: fix-rust fix-js fix-py ## Run project autofixers
checks-py:
make -C python checks
checks-js:
# noop
checks-rust:
make -C rust checks
checks: checks-rust checks-js checks-py ## Run any other checks
tests-py:
make -C python tests
tests-js:
cd js; yarn test
tests-rust:
make -C rust tests
tests: tests-rust tests-js tests-py ## Run the tests
test: tests
tests-ci-rust:
make -C rust tests-ci
tests-ci: tests-ci-rust tests-py tests-js
# Thanks to Francoise at marmelab.com for this
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
print-%:
@echo '$*=$($*)'