-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
75 lines (54 loc) · 1.08 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
.PHONY: build
build:
cd core && cargo build --release
.PHONY: clean
clean:
rm -rf core/target/release
rm -rf tools
# Development
.PHONY: dev
dev: vim rust
.PHONY: lint
lint: vim-lint rust-lint
.PHONY: d
d:
watchexec 'make r lint'
## rust {{{
.PHONY: rust
rust: rust-format rust-lint rust-test rust-doc
.PHONY: r
r: rust-lint rust-test rust-doc
.PHONY: rust-format
rust-format:
cd core && cargo fmt
.PHONY: rust-lint
rust-lint:
cd core && cargo clippy --all-targets
.PHONY: rust-test
rust-test:
cd core && cargo test --all-targets
.PHONY: rust-doc
rust-doc:
cd core && cargo doc
#}}}
## Vim {{{
.PHONY: vim
vim: vim-lint
.PHONY: vim-lint
vim-lint: tools/py/bin/vint
./tools/py/bin/vint --version
@./tools/py/bin/vint plugin
@./tools/py/bin/vint autoload
# }}}
## Prepare tools {{{
prepare: tools/py/bin/vint tools/vim-themis
tools/vim-themis: tools
git clone https://github.com/thinca/vim-themis $@
tools/py/bin/vint: tools/py/bin
cd tools && ./py/bin/pip install vim-vint
tools/py/bin: tools
cd tools && python -m venv py
tools:
mkdir -p $@
# }}}
# vim: foldmethod=marker