-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmakefile
More file actions
55 lines (41 loc) · 1.18 KB
/
makefile
File metadata and controls
55 lines (41 loc) · 1.18 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
.PHONY: help
help: makefile
@tail -n +4 makefile | grep ".PHONY"
textalyzer-wasm/pkg: textalyzer-wasm/src/lib.rs textalyzer-wasm/Cargo.toml
cd textalyzer-wasm \
&& wasm-pack build --target web
.PHONY: build
build: textalyzer-wasm/pkg
.PHONY: format
format:
# nix fmt
cargo fmt
.PHONY: test
test:
cargo test
cargo clippy
.PHONY: install
install:
cargo install --path textalyzer
.PHONY: clean
clean:
rm -rf target
rm -rf textalyzer-wasm/pkg
.PHONY: release
release:
@echo '1. `cai changelog <first-commit-hash>`'
@echo '2. `git add ./changelog.md && git commit -m "Update changelog"`'
@echo '3. `cargo release --package textalyzer major / minor / patch`'
@echo '4. Create a new GitHub release at https://github.com/ad-si/Textalyzer/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" \
" - Reddit \n" \
" - https://reddit.com/r/rust \n" \
" - https://reddit.com/r/ChatGPT \n" \
" - https://reddit.com/r/ArtificialInteligence \n" \
" - https://reddit.com/r/artificial \n"