-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
72 lines (55 loc) · 1.3 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
mise := ~/.local/bin/mise
define HELP_BODY
USAGE: make <subcommand>
SUBCOMMANDS:
help Show help.
setup Set up development environment.
clean Clean build folder.
env Show build environment.
build Build (debug).
test Run tests.
release Build (release), sign, notarize, and staple executable.
sign Sign executable.
format Format source code.
autocorrect Autocorrect lint issues if possible.
lint Lint source code.
ready Perform all CI checks locally.
install Install the latest public release.
uninstall Uninstall.
endef
export HELP_BODY
help:
@echo "$$HELP_BODY"
setup:
curl "https://mise.run" | sh
clean:
@$(mise) run clean
env:
@$(mise) run env
build: env
@$(mise) run build
test:
@$(mise) run test
sign:
@$(mise) run sign
release: clean
@$(mise) run release
format:
@$(mise) install
@$(mise) run format
autocorrect:
@$(mise) install
@$(mise) run autocorrect
lint:
@$(mise) install
@$(mise) run lint
ready:
make format
make lint
make build
make sign
make test
install:
@$(mise) run install
uninstall:
@$(mise) run uninstall