instant-distance/Makefile

15 lines
330 B
Makefile
Raw Normal View History

2023-12-01 14:18:14 +00:00
ifeq ($(shell uname), Darwin)
PY_EXT := dylib
else
PY_EXT := so
endif
2021-03-18 10:04:39 +00:00
test-python:
cargo build --release
2023-12-01 14:18:14 +00:00
cp target/release/libinstant_distance.$(PY_EXT) instant-distance-py/test/instant_distance.so
2021-03-18 10:04:39 +00:00
PYTHONPATH=instant-distance-py/test/ python3 -m test
2021-11-10 08:21:52 +00:00
clean:
cargo clean
2021-11-10 08:23:50 +00:00
rm -f instant-distance-py/test/instant_distance.so