build: add a convenient Makefile
authorDavid Aguilar <[email protected]>
Fri, 9 May 2008 11:40:24 +0000 (9 04:40 -0700)
committerDavid Aguilar <[email protected]>
Fri, 9 May 2008 11:42:54 +0000 (9 04:42 -0700)
The Makefile has the standard targets:

clean
all
install
uninstall

Signed-off-by: David Aguilar <[email protected]>
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..d859ca1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+#! /usr/bin/make -f
+
+prefix=/usr/local
+PYTHON=python2.5
+
+PYTHONPATH=$(prefix)/lib/$(PYTHON)/site-packages
+
+all:
+       $(PYTHON) setup.py build
+
+install:
+       mkdir -p $(prefix)/lib/$(PYTHON)/site-packages
+       $(PYTHON) setup.py install --prefix=$(prefix)
+
+uninstall:
+       rm -rf $(prefix)
+
+clean:
+       rm -rf dist build python_git.egg-info
+       find . -name '*.py[co]' | xargs rm -f
+
+release:
+       $(PYTHON) setup.py egg_info -RDb "" sdist bdist_egg register upload