tools: use $(PREFIX) rather than hard-coding /usr
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jul 2008 13:33:28 +0000 (14:33 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jul 2008 13:33:28 +0000 (14:33 +0100)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
tools/Makefile
tools/libaio/src/Makefile
tools/xenstat/libxenstat/Makefile

index 8920ae9a9b8846687be17ef6697774da4c6ad892..6789ec400356caa91aa6f6caa6baf6e98c790774 100644 (file)
@@ -60,8 +60,8 @@ IOEMU_CONFIGURE_CROSS ?= --cross-prefix=$(CROSS_COMPILE) \
 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 f926670e672692234daef2552920e4e89ec8ac79..da981b717895a25103bb4f1fa23f664db282d6d4 100644 (file)
@@ -1,7 +1,7 @@
 XEN_ROOT = ../../..
 include $(XEN_ROOT)/tools/Rules.mk
 
-prefix=/usr
+prefix=$(PREFIX)
 includedir=$(prefix)/include
 libdir=$(prefix)/lib
 
index f60ec7872eba3f7c9ee7c6e8aa3ef06ce58d3adc..1177b55ac06c9b184eec701b7b6aaaf5a4821dfb 100644 (file)
@@ -15,7 +15,7 @@
 XEN_ROOT=../../..
 include $(XEN_ROOT)/tools/Rules.mk
 
-prefix=/usr
+prefix=$(PREFIX)
 includedir=$(prefix)/include
 libdir=$(prefix)/lib