f2f5e9c5d9304792d80d05ca862ee84fce271926
[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
29 $(RM) $(NAME).egg-info $(NAME)/_isl.*.so $(NAME)/__pycache__
30 $(RM) tests/__pycache__