changeset 10961:ce6d56b95f2e

Respect the DESTDIR variable during 'make install' The DESTDIR variable used to tell 'make install' an alternate system root to install the software to. Since setup.py supports the same via its --root parameter, it's easy to make life easier for many packagers.
author Dévai Tamás <devait@vnet.hu>
date Fri, 16 Apr 2010 23:59:43 +0200
parents ca739acf1a98
children 8d5f5122a732
files Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Apr 12 19:33:25 2010 -0400
+++ b/Makefile	Fri Apr 16 23:59:43 2010 +0200
@@ -51,7 +51,7 @@
 install: install-bin install-doc
 
 install-bin: build
-	$(PYTHON) setup.py $(PURE) install --prefix="$(PREFIX)" --force
+	$(PYTHON) setup.py $(PURE) install --root="$(DESTDIR)/" --prefix="$(PREFIX)" --force
 
 install-doc: doc
 	cd doc && $(MAKE) $(MFLAGS) install