[lxc-devel] [PATCH] python3-lxc: Fix build prefix/destdir
Stéphane Graber
stgraber at ubuntu.com
Fri Dec 7 17:24:23 UTC 2012
Signed-off-by: Stéphane Graber <stgraber at 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
More information about the lxc-devel
mailing list