qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/1] Makefile: Correct path in stripping tool binari


From: Sam Bobroff
Subject: [Qemu-devel] [PATCH 1/1] Makefile: Correct path in stripping tool binaries
Date: Wed, 4 Jun 2014 11:37:03 +1000

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 <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]