-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
64 lines (49 loc) · 1.24 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
.PHONY: build
build: build/bin/twsearch
.PHONY: all
all: \
build/bin/twsearch \
build-rust \
build-rust-wasm
.PHONY: setup
setup: setup-gitignore-dirs setup-js setup-rust
.PHONY: test
test: \
test-warning \
test-cpp \
lint \
test-rust \
test-rust-ffi \
benchmark-rust
.PHONY: test-cpp
test-cpp: \
test-cpp-cli \
test-twsearch-cpp-wrapper-cli \
lint-cpp
.PHONY: test-warning
test-warning:
@echo "Warning: tests are slow to run right now."
.PHONY: clean
clean:
rm -rf ./.temp ./build ./dist ./src/js/generated-wasm/twsearch.* ./*.dwo ./package-lock.json
.PHONY: reset
reset: clean
rm -rf ./emsdk ./node_modules ./target ./.bin
.PHONY: lint
lint: lint-cpp lint-js lint-rust
.PHONY: format
format: format-cpp format-js format-rust
.PHONY: publish
publish: test-rust publish-rust
.PHONY: print-current-commit-hash
print-current-commit-hash:
@bun run ./script/print-current-commit-hash.ts
.PHONY: setup-gitignore-dirs
setup-gitignore-dirs:
bun run ./script/self-gitignore-dirs.ts ./.bin ./.temp ./build ./dist ./target
TWSEARCH_VERSION=$(shell git describe --tags)
include ./Makefiles/cpp.Makefile
include ./Makefiles/js.Makefile
include ./Makefiles/rust-ffi.Makefile
include ./Makefiles/rust-wasm.Makefile
include ./Makefiles/rust.Makefile