aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenmon
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-01-22 14:35:02 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-01-22 14:35:02 +0000
commit93e3de7b940428c3c66c6340c621a3b92c14cff6 (patch)
tree3fea73c58d2bb41e430636efcde7216fa84fd12a /tools/xenmon
parent93a029ac74a0f497b020e03d066594ab0108bb9c (diff)
downloadxen-93e3de7b940428c3c66c6340c621a3b92c14cff6.tar.gz
xen-93e3de7b940428c3c66c6340c621a3b92c14cff6.tar.bz2
xen-93e3de7b940428c3c66c6340c621a3b92c14cff6.zip
Add SBINDIR. Use it always.
Signed-off-by: Bastian Blank <waldi@debian.org>
Diffstat (limited to 'tools/xenmon')
-rw-r--r--tools/xenmon/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/xenmon/Makefile b/tools/xenmon/Makefile
index c1f4cd3f46..ef0b36227c 100644
--- a/tools/xenmon/Makefile
+++ b/tools/xenmon/Makefile
@@ -13,8 +13,6 @@
XEN_ROOT=../..
include $(XEN_ROOT)/tools/Rules.mk
-sbindir=/usr/sbin
-
CFLAGS += -Werror
CFLAGS += -I $(XEN_XC)
CFLAGS += -I $(XEN_LIBXC)
@@ -31,10 +29,10 @@ build: $(BIN)
.PHONY: install
install: build
- [ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir)
- $(INSTALL_PROG) xenbaked $(DESTDIR)$(sbindir)/xenbaked
- $(INSTALL_PROG) xentrace_setmask $(DESTDIR)$(sbindir)/xentrace_setmask
- $(INSTALL_PROG) xenmon.py $(DESTDIR)$(sbindir)/xenmon.py
+ $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
+ $(INSTALL_PROG) xenbaked $(DESTDIR)$(SBINDIR)/xenbaked
+ $(INSTALL_PROG) xentrace_setmask $(DESTDIR)$(SBINDIR)/xentrace_setmask
+ $(INSTALL_PROG) xenmon.py $(DESTDIR)$(SBINDIR)/xenmon.py
.PHONY: clean
clean: