Fix make clean
[linpy.git] / Makefile
index 28c927f..9b6366b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-NAME=pypol
+NAME=linpy
 
 PYTHON=python3
 SETUP=$(PYTHON) setup.py
@@ -6,7 +6,7 @@ RM=rm -rf
 
 .PHONY: default
 default:
-       @echo "$(NAME) – A polyhedral library based on ISL"
+       @echo "$(NAME) – A polyhedral library based on isl"
        @echo
        @echo "Makefile usage:"
        @echo "  make build            build the extension modules"
@@ -20,8 +20,8 @@ build:
        $(SETUP) build_ext --inplace
 
 .PHONY: test
-test: build
-       $(PYTHON) -m unittest -v
+test:
+       $(SETUP) test
 
 .PHONY: doc
 doc:
@@ -33,6 +33,6 @@ view_doc: doc
 
 .PHONY: clean
 clean:
-       $(RM) build dist MANIFEST venv $(NAME).egg-info $(NAME)/_islhelper.*.so
+       $(RM) build dist MANIFEST venv LinPy.egg-info $(NAME)/_islhelper.*.so
        find . -name __pycache__ | xargs $(RM)
        $(MAKE) -C doc $@