From: "Jan Beulich" Subject: [PATCH, RFC] tools: use $(PREFIX) rather than hard-coding /usr Date: Thu, 24 Jul 2008 14:29:10 +0100 Message-ID: <48889FC6.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I would think that when a non-default $(PREFIX) is in use, it should be honored by sub-components whenever possible. Signed-off-by: Jan Beulich Index: 2008-07-21/tools/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 2008-07-21.orig/tools/Makefile 2008-07-24 15:08:18.000000000 = +0200 +++ 2008-07-21/tools/Makefile 2008-07-24 15:08:40.000000000 +0200 @@ -60,8 +60,8 @@ IOEMU_CONFIGURE_CROSS ?=3D --cross-prefix=3D endif =20 ioemu/config-host.mak: - cd ioemu && XEN_TARGET_ARCH=3D$(XEN_TARGET_ARCH) sh configure = --prefix=3D/usr \ - $(IOEMU_CONFIGURE_CROSS) + cd ioemu && XEN_TARGET_ARCH=3D$(XEN_TARGET_ARCH) sh configure \ + --prefix=3D$(PREFIX) $(IOEMU_CONFIGURE_CROSS) =20 subdir-all-ioemu subdir-install-ioemu: ioemu/config-host.mak =20 Index: 2008-07-21/tools/libaio/src/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 2008-07-21.orig/tools/libaio/src/Makefile 2006-08-21 18:02:23.0000000= 00 +0200 +++ 2008-07-21/tools/libaio/src/Makefile 2008-07-24 15:10:48.0000000= 00 +0200 @@ -1,7 +1,7 @@ XEN_ROOT =3D ../../.. include $(XEN_ROOT)/tools/Rules.mk =20 -prefix=3D/usr +prefix=3D$(PREFIX) includedir=3D$(prefix)/include libdir=3D$(prefix)/lib =20 Index: 2008-07-21/tools/xenstat/libxenstat/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 2008-07-21.orig/tools/xenstat/libxenstat/Makefile 2008-07-24 = 15:08:18.000000000 +0200 +++ 2008-07-21/tools/xenstat/libxenstat/Makefile 2008-07-24 = 15:08:40.000000000 +0200 @@ -15,7 +15,7 @@ XEN_ROOT=3D../../.. include $(XEN_ROOT)/tools/Rules.mk =20 -prefix=3D/usr +prefix=3D$(PREFIX) includedir=3D$(prefix)/include libdir=3D$(prefix)/lib =20