Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 src/python-lxc/Makefile.am | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/python-lxc/Makefile.am b/src/python-lxc/Makefile.am
index 15c61ea..9d775c3 100644
--- a/src/python-lxc/Makefile.am
+++ b/src/python-lxc/Makefile.am
@@ -10,7 +10,11 @@ all:
        CFLAGS="$(CFLAGS) -I ../../src -L../../src/lxc/" $(PYTHON) setup.py 
build
 
 install:
-       python3 setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) 
--no-compile $(DISTSETUPOPTS)
+       if [ "$(DESTDIR)" = "" ]; then \
+               $(PYTHON) setup.py install --prefix=$(prefix) --no-compile 
$(DISTSETUPOPTS); \
+       else \
+               $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(prefix) 
--no-compile $(DISTSETUPOPTS); \
+       fi
 
 clean:
        rm -rf build
-- 
1.8.0


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to