-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
36 lines (25 loc) · 857 Bytes
/
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
MAKEFLAGS += -j4
.PHONY: *
export RUST_LOG=debug
test:
cargo test --lib --bins --tests -- --test-threads=20
build: generate_word_list
cd crates/codebook-lsp && cargo build
build-release: generate_word_list
cd crates/codebook-lsp && cargo build --release
integration_test: build
cd integration_tests && bun test
install_ext: build-release
cp -f target/release/codebook-lsp "${HOME}/Library/Application Support/Zed/extensions/work/codebook/"
uninstall_ext:
rm -f "${HOME}/Library/Application Support/Zed/extensions/work/codebook/codebook-lsp"
generate_word_list:
bun run scripts/generate_combined_wordlist.ts
release-lsp:
bun run scripts/release_lsp.ts
clear_cache: build
target/debug/codebook-lsp clean
build-dictionaries:
cargo run -p dictionary-builder -- build
generate-manifest:
cargo run -p dictionary-builder -- generate-manifest