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