qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/1] Makefile: Correct path in stripping tool binaries
@ 2014-06-04  1:37 Sam Bobroff
  2014-06-04  8:24 ` Peter Maydell
  2014-06-22  6:30 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  0 siblings, 2 replies; 4+ messages in thread
From: Sam Bobroff @ 2014-06-04  1:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

Allow "make install" to handle tool binaries that reside in
sub-directories.

Without this patch "make install" will fail if it needs to strip
a tool binary (e.g. debugging is not enabled) that is installed
from a subdirectory. An example is fsdev/virtfs-proxy-helper.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d830483..9c23265 100644
--- a/Makefile
+++ b/Makefile
@@ -380,7 +380,7 @@ install-datadir install-localstatedir
 ifneq ($(TOOLS),)
 	$(INSTALL_PROG) $(TOOLS) "$(DESTDIR)$(bindir)"
 ifneq ($(STRIP),)
-	$(STRIP) $(TOOLS:%="$(DESTDIR)$(bindir)/%")
+	$(STRIP) $(foreach T,$(TOOLS),"$(DESTDIR)$(bindir)/$(notdir $T)")
 endif
 endif
 ifneq ($(CONFIG_MODULES),)
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-22  6:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04  1:37 [Qemu-devel] [PATCH 1/1] Makefile: Correct path in stripping tool binaries Sam Bobroff
2014-06-04  8:24 ` Peter Maydell
2014-06-22  6:30 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2014-06-22  6:52   ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).