Respect the DESTDIR variable during 'make install'
authorDévai Tamás <devait@vnet.hu>
Fri, 16 Apr 2010 23:59:43 +0200
changeset 10961 ce6d56b95f2e
parent 10960 ca739acf1a98
child 10962 8d5f5122a732
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.
Makefile
--- 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