-
Notifications
You must be signed in to change notification settings - Fork 80
/
Makefile
65 lines (48 loc) · 1.2 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
PYTHON ?= python
all: build
.PHONY:
build: .PHONY
$(PYTHON) -m pip install -e .
clean:
$(PYTHON) -m pip uninstall -y sourmash
rm -rf src/sourmash/_lowlevel
cd doc && make clean
install: build
dist: FORCE
$(PYTHON) -m build --sdist
test: .PHONY
tox -e py310
cargo test
doc: .PHONY
tox -e docs
include/sourmash.h: src/core/src/lib.rs \
src/core/src/ffi/mod.rs \
src/core/src/ffi/hyperloglog.rs \
src/core/src/ffi/minhash.rs \
src/core/src/ffi/signature.rs \
src/core/src/ffi/nodegraph.rs \
src/core/src/ffi/index/mod.rs \
src/core/src/ffi/index/revindex.rs \
src/core/src/ffi/storage.rs \
src/core/src/errors.rs \
src/core/cbindgen.toml
cd src/core && \
RUSTC_BOOTSTRAP=1 cbindgen -c cbindgen.toml . -o ../../$@
coverage: all
tox -e coverage
benchmark:
tox -e asv
cargo bench
check:
cargo build
cargo test
cargo bench
last-tag:
git fetch -p -q; git tag -l | sort -V | tail -1
wasm:
wasm-pack build src/core -d ../../pkg
wasm-test:
wasm-pack test --node src/core
wasi:
cargo wasi build
FORCE: