1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#
# written by Markus F. X. J. Oberhumer <markus@oberhumer.com>
#
# to use a specific python version call
# `make PYTHON=python2.2'
#
SHELL = /bin/sh
PYTHON = python2.2
PYTHON = python
all build:
$(PYTHON) setup.py build
test: build
$(PYTHON) tests/test.py
# (for Linux, needs GNU binutils)
strip: build
strip -p --strip-unneeded build/lib*/*.so
chmod -x build/lib*/*.so
install install_lib:
$(PYTHON) setup.py $@
clean:
-rm -rf build dist
-rm -f *.pyc *.pyo */*.pyc */*.pyo
-rm -f MANIFEST
distclean: clean
maintainer-clean: distclean
dist sdist: distclean
$(PYTHON) setup.py sdist
.PHONY: all build test strip install install_lib clean distclean maintainer-clean dist sdist
.NOEXPORT:
|