Skip to contentSkip to conversation

tools: use $(PREFIX) rather than hard-coding /usr

RFC PATCH New Jan Beulich 1 participant 1 message Jul 24, 2008

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 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.

tools/Makefile +2 -2
Index: 2008-07-21/tools/Makefile
===================================================================
@@ -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
 
tools/libaio/src/Makefile +1 -1
Index: 2008-07-21/tools/libaio/src/Makefile
===================================================================
@@ -1,7 +1,7 @@
 XEN_ROOT = ../../..
 include $(XEN_ROOT)/tools/Rules.mk
 
-prefix=/usr
+prefix=$(PREFIX)
 includedir=$(prefix)/include
 libdir=$(prefix)/lib
 
tools/xenstat/libxenstat/Makefile +1 -1
Index: 2008-07-21/tools/xenstat/libxenstat/Makefile
===================================================================
@@ -15,7 +15,7 @@
 XEN_ROOT=../../..
 include $(XEN_ROOT)/tools/Rules.mk
 
-prefix=/usr
+prefix=$(PREFIX)
 includedir=$(prefix)/include
 libdir=$(prefix)/lib