WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH, RFC] tools: use $(PREFIX) rather than hard-coding /u

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH, RFC] tools: use $(PREFIX) rather than hard-coding /usr
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Thu, 24 Jul 2008 14:29:10 +0100
Delivery-date: Thu, 24 Jul 2008 06:29:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH, RFC] tools: use $(PREFIX) rather than hard-coding /usr, Jan Beulich <=