diff Makefile @ 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 821793e3049c
children 11cd65611f3f
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