e38f79b2f5b1b5ce524804d56c34e6cb96c0f658
[linpy.git] / Makefile
1 NAME=pypol
2
3 PYTHON=python3
4 PIP=pip3
5 VIRTUALENV=pyvenv
6 SETUP=$(PYTHON) setup.py
7 RM=rm -rf
8
9 .PHONY: default
10 default:
11 @echo "$(NAME) – A polyhedral library based on ISL"
12 @echo
13 @echo "Makefile usage:"
14 @echo " make build build the extension modules"
15 @echo " make test run the test suite"
16 @echo " make clean remove the generated files"
17
18 .PHONY: build
19 build:
20 $(SETUP) build_ext --inplace
21
22 .PHONY: test
23 test: build
24 $(PYTHON) -m unittest -v
25
26 .PHONY: clean
27 clean:
28 $(RM) build dist MANIFEST venv $(NAME).egg-info $(NAME)/_islhelper.*.so
29 find . -name __pycache__ | xargs $(RM)