Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-02-18 03:58:55 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-02-20 00:03:07 (GMT)
commitb999a05ad78264d6b7975bf39c8297f36a514ed1 (patch)
tree9d635b80737206ccea9aa7e448910b93760116a9 /Makefile
parent25ddc1089bb0950d2d8a8cec8a62acb1a9469ec2 (diff)
Add Makefile to build binary package in convenient way
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..7689e23
--- /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 colorsc $@
+
+install: all
+ ./setup.py fix_manifest
+ sed -i /^colorsc/d MANIFEST
+ ./setup.py install --prefix=$(DESTDIR)/usr
+ for i in __init__.py _colorsc.so colorsc.py; do \
+ install -m 644 -D colorsc/$$i $(DESTDIR)/$(pythondir)/colorsc/$$i; \
+ done