2013-06-20 23:16:36 +04:00
|
|
|
PYTHON=python
|
|
|
|
|
|
|
|
.PHONY: tests
|
|
|
|
|
|
|
|
PREFIX=/usr/local
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo 'Commonly used make targets:'
|
|
|
|
@echo ' local - build for inplace use'
|
|
|
|
@echo ' install - install program and man pages to PREFIX ($(PREFIX))'
|
|
|
|
@echo ' clean - remove files created by other targets'
|
|
|
|
@echo ' (except installed files or dist source tarball)'
|
|
|
|
|
|
|
|
local:
|
|
|
|
$(PYTHON) setup.py \
|
|
|
|
build_py -c -d . \
|
2017-02-24 01:03:02 +03:00
|
|
|
build_clib \
|
2013-06-20 23:16:36 +04:00
|
|
|
build_ext -i
|
|
|
|
|
|
|
|
install:
|
|
|
|
$(PYTHON) setup.py $(PURE) install --prefix="$(PREFIX)" --force
|
|
|
|
|
|
|
|
clean:
|
2017-05-02 19:12:56 +03:00
|
|
|
-$(PYTHON) setup.py clean --all clean_ext # ignore errors from this command
|
2016-08-26 16:27:59 +03:00
|
|
|
|
|
|
|
deb:
|
|
|
|
contrib/builddeb
|