Jan Beulich
2008-Jul-24 13:29 UTC
[Xen-devel] [PATCH, RFC] tools: use $(PREFIX) rather than hard-coding /usr
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 <jbeulich@novell.com> Index: 2008-07-21/tools/Makefile ==================================================================--- 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 ?= --cross-prefix endif ioemu/config-host.mak: - cd ioemu && XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) sh configure --prefix=/usr \ - $(IOEMU_CONFIGURE_CROSS) + cd ioemu && XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) sh configure \ + --prefix=$(PREFIX) $(IOEMU_CONFIGURE_CROSS) subdir-all-ioemu subdir-install-ioemu: ioemu/config-host.mak Index: 2008-07-21/tools/libaio/src/Makefile ==================================================================--- 2008-07-21.orig/tools/libaio/src/Makefile 2006-08-21 18:02:23.000000000 +0200 +++ 2008-07-21/tools/libaio/src/Makefile 2008-07-24 15:10:48.000000000 +0200 @@ -1,7 +1,7 @@ XEN_ROOT = ../../.. include $(XEN_ROOT)/tools/Rules.mk -prefix=/usr +prefix=$(PREFIX) includedir=$(prefix)/include libdir=$(prefix)/lib Index: 2008-07-21/tools/xenstat/libxenstat/Makefile ==================================================================--- 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=../../.. include $(XEN_ROOT)/tools/Rules.mk -prefix=/usr +prefix=$(PREFIX) includedir=$(prefix)/include libdir=$(prefix)/lib _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel