diff --git a/Makefile b/Makefile index 0de9c765..209d1e4a 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,16 @@ dist: test: python3 -m unittest discover --start-directory tests/python --pattern "bindings_test*.py" +examples: + @for f in examples/python/example*.py; do \ + echo "=== $$f ==="; \ + python3 "$$f" || exit 1; \ + done + +install: + pip install . + clean: rm -rf *.egg-info build dist tmp var tests/__pycache__ hnswlib.cpython*.so -.PHONY: dist +.PHONY: dist test examples install clean