From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYclY-0001NU-BI for qemu-devel@nongnu.org; Wed, 14 Nov 2012 08:12:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYclV-0002Nj-7W for qemu-devel@nongnu.org; Wed, 14 Nov 2012 08:12:28 -0500 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:38304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYclU-0002NE-Uz for qemu-devel@nongnu.org; Wed, 14 Nov 2012 08:12:25 -0500 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Nov 2012 13:12:22 -0000 Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAEDCCOa58589218 for ; Wed, 14 Nov 2012 13:12:12 GMT Received: from d06av05.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAEDCK8N020208 for ; Wed, 14 Nov 2012 06:12:20 -0700 From: Cornelia Huck Date: Wed, 14 Nov 2012 14:12:19 +0100 Message-Id: <1352898739-57797-3-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1352898739-57797-1-git-send-email-cornelia.huck@de.ibm.com> References: <1352898739-57797-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH 2/2] rules.mak: Fix find-in-path List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , Paolo Bonzini , Anthony Liguori Whitespace needs to be stripped before building the path and in the end to ensure we really get an empty string. Signed-off-by: Cornelia Huck --- rules.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.mak b/rules.mak index 1b173aa..66b1d79 100644 --- a/rules.mak +++ b/rules.mak @@ -55,9 +55,9 @@ set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) # Looks in the PATH if the argument contains no slash, else only considers one # specific directory. Returns an # empty string if the program doesn't exist # there. -find-in-path = $(if $(find-string /, $1), \ +find-in-path = $(strip $(if $(find-string /, $1), \ $(wildcard $1), \ - $(wildcard $(patsubst %, %/$1, $(subst :, ,$(PATH))))) + $(wildcard $(patsubst %, %/$(strip $1), $(subst :, ,$(PATH)))))) # Generate files with tracetool TRACETOOL=$(PYTHON) $(SRC_PATH)/scripts/tracetool.py -- 1.7.12.4