]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
python3-lxc: Fix build prefix/destdir
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 7 Dec 2012 17:24:23 +0000 (12:24 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 7 Dec 2012 17:38:48 +0000 (12:38 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/python-lxc/Makefile.am

index 15c61eaa500a0c885bc571bfdbdcae387ba6cf61..9d775c3ec242ddb8636874f8eb843c17410fd2cf 100644 (file)
@@ -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