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.
--- 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