-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 691 Bytes
/
Makefile
File metadata and controls
40 lines (28 loc) · 691 Bytes
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
#
# 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 = 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: