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.bobr...@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


Reply via email to