From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH v4 1/9] xentrace: install into sbin Date: Tue, 2 Jun 2015 18:03:31 +0100 Message-ID: <556DE1E3.90807@eu.citrix.com> References: <1432369458-7587-1-git-send-email-olaf@aepfle.de> <1432369458-7587-2-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1432369458-7587-2-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering , xen-devel@lists.xen.org Cc: Wei Liu , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 05/23/2015 09:24 AM, Olaf Hering wrote: > Collecting the trace buffer requires root permissions. Adjust Makefile > to install xentrace and xentrace_setsize into sbindir. Leave the > existing support for BIN in place for upcoming changes. > > Signed-off-by: Olaf Hering > Cc: George Dunlap Acked-by: George Dunlap > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu > --- > tools/xentrace/Makefile | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/tools/xentrace/Makefile b/tools/xentrace/Makefile > index 8b80541..5360960 100644 > --- a/tools/xentrace/Makefile > +++ b/tools/xentrace/Makefile > @@ -6,7 +6,8 @@ CFLAGS += -Werror > CFLAGS += $(CFLAGS_libxenctrl) > LDLIBS += $(LDLIBS_libxenctrl) > > -BIN = xentrace xentrace_setsize > +BIN = > +SBIN = xentrace xentrace_setsize > LIBBIN = xenctx > SCRIPTS = xentrace_format > MAN1 = $(wildcard *.1) > @@ -16,15 +17,16 @@ MAN8 = $(wildcard *.8) > all: build > > .PHONY: build > -build: $(BIN) $(LIBBIN) > +build: $(BIN) $(SBIN) $(LIBBIN) > > .PHONY: install > install: build > $(INSTALL_DIR) $(DESTDIR)$(bindir) > + $(INSTALL_DIR) $(DESTDIR)$(sbindir) > [ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN) > $(INSTALL_DIR) $(DESTDIR)$(MAN1DIR) > $(INSTALL_DIR) $(DESTDIR)$(MAN8DIR) > - $(INSTALL_PROG) $(BIN) $(DESTDIR)$(bindir) > + $(INSTALL_PROG) $(SBIN) $(DESTDIR)$(sbindir) > $(INSTALL_PYTHON_PROG) $(SCRIPTS) $(DESTDIR)$(bindir) > [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(LIBEXEC_BIN) > $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR) > @@ -32,7 +34,7 @@ install: build > > .PHONY: clean > clean: > - $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN) $(DEPS) > + $(RM) *.a *.so *.o *.rpm $(BIN) $(SBIN) $(LIBBIN) $(DEPS) > > .PHONY: distclean > distclean: clean >