forked from egraphs-good/snake-egg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 782 Bytes
/
Makefile
File metadata and controls
35 lines (24 loc) · 782 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
.PHONY: all build test install doc clean distclean
activate=. venv/bin/activate
all: test
venv:
python3 -m venv venv
$(activate) && python -m pip install maturin
build: venv
$(activate) && maturin build --release
test: tests/*.py build venv
$(activate) && maturin develop && python tests/math.py
$(activate) && maturin develop && python tests/prop.py
$(activate) && maturin develop && python tests/simple.py
install: venv
$(activate) maturin build --release && \
python -m pip install snake_egg --force-reinstall --no-index \
--find-link ./target/wheels/
doc: venv
$(activate) && maturin develop && python -m pydoc -w snake_egg
shell: venv
$(activate) && maturin develop && python -ic 'import snake_egg'
clean:
cargo clean
distclean: clean
$(RM) -r venv