From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ws08o-0001fg-Ly for qemu-devel@nongnu.org; Tue, 03 Jun 2014 21:37:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ws08f-0007uJ-CJ for qemu-devel@nongnu.org; Tue, 03 Jun 2014 21:37:22 -0400 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:54863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ws08e-0007tv-Ki for qemu-devel@nongnu.org; Tue, 03 Jun 2014 21:37:13 -0400 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Jun 2014 11:37:07 +1000 From: Sam Bobroff Date: Wed, 4 Jun 2014 11:37:03 +1000 Message-Id: <1513018f45cbc2dfff157d5df1dc86246cf08843.1401845262.git.sam.bobroff@au1.ibm.com> Subject: [Qemu-devel] [PATCH 1/1] Makefile: Correct path in stripping tool binaries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org 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 --- 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