Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9110bc0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+pythondir = $(shell python -c "from distutils import sysconfig; print sysconfig.get_python_lib()")
+
+all clean:
+ $(MAKE) -C pongc $@
+
+install: all
+ ./setup.py fix_manifest
+ sed -i /^pongc/d MANIFEST
+ ./setup.py install --prefix=$(DESTDIR)/usr
+ for i in __init__.py _pongc.so pongc.py; do \
+ install -m 644 -D pongc/$$i $(DESTDIR)/$(pythondir)/pongc/$$i; \
+ done