-- allow packaging of thrift as an rpm
authorAditya Agarwal <aditya@apache.org>
Tue, 31 Jul 2007 01:36:08 +0000 (01:36 +0000)
committerAditya Agarwal <aditya@apache.org>
Tue, 31 Jul 2007 01:36:08 +0000 (01:36 +0000)
Summary:
- also allows development as a non-root user
- contributed by Ben Maurer

Reviewed By: marc

Test Plan: "compile", install

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665185 13f79535-47bb-0310-9956-ffa450edef68

lib/py/Makefile.am

index 579a3eb..27d1115 100644 (file)
@@ -1,2 +1,4 @@
+DESTDIR ?= /
+
 install-exec-hook:
-       $(PYTHON) setup.py install
+       $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) $(PYTHON_SETUPUTIL_ARGS)