-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (29 loc) · 882 Bytes
/
makefile
File metadata and controls
37 lines (29 loc) · 882 Bytes
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
.PHONY: help
help: makefile
@tail -n +4 makefile | grep ".PHONY"
.PHONY: format
format:
cargo clippy --fix --allow-dirty
cargo fmt
find . -type f -name '*.rs' \
-exec sed -i -E 's/^([[:space:]]*)\} else/\1}\n\1else/g' {} +
.PHONY: test
test: format
cargo test -- --show-output
.PHONY: install
install:
cargo install --path .
.PHONY: release
release:
@echo '1. `cai changelog <first-new-commit-hash>`'
@echo '2. `git add ./changelog.md && git commit -m "Update changelog"`'
@echo '3. `cargo release major / minor / patch`'
@echo '4. Create a new GitHub release at https://github.com/ad-si/tu/releases/new'
@echo \
"5. Announce release on \n" \
" - https://x.com \n" \
" - https://bsky.app \n" \
" - https://this-week-in-rust.org \n" \
" - https://news.ycombinator.com \n" \
" - https://lobste.rs \n" \
" - https://reddit.com/r/rust \n"