[PATCH] Respect the DESTDIR variable during 'make install'
Dévai Tamás
devait at vnet.hu
Fri Apr 16 17:13:24 CDT 2010
# HG changeset patch
# User Dévai Tamás <devait at vnet.hu>
# Date 1271455183 -7200
# Node ID d0c7becae939237bec26c0cea94fa7ee31014926
# Parent c2bf61e48f35e34f24b88c8903c4dc4819e08e6c
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.
diff -r c2bf61e48f35 -r d0c7becae939 Makefile
--- a/Makefile Fri Apr 16 01:58:14 2010 +0200
+++ 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
More information about the Mercurial-devel
mailing list