From ff1b972e1c2a4ca61cb1fa2fc8e7d9205316c698 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 21 Sep 2009 19:08:21 -0300 Subject: [PATCH] Don't add extra spaces in abbr function In some situations an extra leading space is added when using the abbr function. This patch fixes that. --- Lib.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib.mak b/Lib.mak index bddc5e1..58b804f 100644 --- a/Lib.mak +++ b/Lib.mak @@ -110,8 +110,8 @@ find_files = $(patsubst $(if $3,$3,$C)/%$1,$(if $2,$2,$(if $3,$3,$C))/%$1, \ # directory, so it can be displayed as if it were a relative directory. Take # just one argument, the file name. abbr_helper = $(subst $T,.,$(patsubst $T/%,%,$1)) -abbr = $(if $(call eq,$(call abbr_helper,$1),$1),$1, \ - $(addprefix $(shell echo $R | sed 's|/\?\([^/]\+\)/\?|../|g'),\ +abbr = $(if $(call eq,$(call abbr_helper,$1),$1),$1,$(addprefix \ + $(shell echo $R | sed 's|/\?\([^/]\+\)/\?|../|g'),\ $(call abbr_helper,$1))) # Execute a command printing a nice message if $V is @. -- 2.43.0