summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2014-06-18 13:17:52 -0600
committerEric Blake <eblake@redhat.com>2014-06-18 13:19:30 -0600
commit4db97751bd00752d125cd4e42fb1c936b574504f (patch)
treeded5696e8281cd726f9982b9ada10f32f8f3bc07
parent87b0d9793757030a16d1355cb0e2641f87726d06 (diff)
downloadlibvirt-python-4db97751bd00752d125cd4e42fb1c936b574504f.tar.gz
build: provide wrapper makefile
After years of finger training, I'm so used to 'make check' just working, that I lose quite a bit of time re-learning that in this project, it is spelled 'python setup.py build check'. A shim makefile bridges the gap. * Makefile: New file. Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6c8da0a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+# Shim wrapper around setup.py to allow for familiar build targets
+
+PYTHON ?= python
+
+all:
+ $(PYTHON) setup.py build
+
+install: all
+ $(PYTHON) setup.py install
+
+clean:
+ $(PYTHON) setup.py clean
+
+check: all
+ $(PYTHON) setup.py test
+
+rpm:
+ $(PYTHON) setup.py rpm