aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/python/Makefile')
-rw-r--r--tools/python/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/python/Makefile b/tools/python/Makefile
index a3f4face53..9d39bd85b4 100644
--- a/tools/python/Makefile
+++ b/tools/python/Makefile
@@ -3,7 +3,11 @@ all:
python setup.py build
install: all
- python setup.py install --home="$(prefix)/usr"
+ if [ "$(DESTDIR)" = "" ]; then \
+ python setup.py install; \
+ else \
+ python setup.py install --root="$(DESTDIR)"; \
+ fi
clean:
rm -rf build *.pyc *.pyo *.o *.a *~