summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-20 03:03:59 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-20 12:22:38 +0200
commit5abf3b04d50208804c1c5aa59ea4462c5dae9ff7 (patch)
tree85b044fe4439ad09bd4d82c2e06f6a2607ed6c80
parentdbdcf52f342907ba2329fc7a1b3f1590d9df19b6 (diff)
Add a makefile
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..01daaf15
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+ifdef PREFIX
+ PREFIX_ARGS='--prefix=$(PREFIX)'
+else
+ PREFIX_ARGS=
+endif
+
+all:
+ python setup.py build
+
+install:
+ python setup.py install $(PREFIX_ARGS)
+
+dist-tarball:
+ python setup.py sdist --formats=bztar
+
+check:
+ PYTHONPATH=$(PYTHONPATH):./test:./cerbero; trial test
+ pep8 cerbero -r