Re: [notmuch] [PATCH] Makefile: Enable backslash escapes for echo.

Subject: Re: [notmuch] [PATCH] Makefile: Enable backslash escapes for echo.

Date: Thu, 26 Nov 2009 09:43:42 +0100

To: notmuch

Cc:

From: Ingmar Vanhassel


Excerpts from Stefan Schmidt's message of Thu Nov 26 09:17:15 +0100 2009:
> This fixes a visual glitch during a silent compile.
> Before:
> Use "make V=1" to see the verbose compile lines.\n  CC  debugger.o
>   CC    gmime-filter-reply.o
> 
> After:
> Use "make V=1" to see the verbose compile lines.
>   CC    debugger.o
>   CC    gmime-filter-reply.o
> 
> Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>

Looks right, works here with bash, dash & zsh, so:

Reviewed-by: Ingmar Vanhassel <ingmar@exherbo.org>

Thanks!

> ---
>  Makefile |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 2cd1b1b..2d19a6e 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -41,7 +41,7 @@ include Makefile.config
>  # user how to enable verbose compiles.
>  ifeq ($(V),)
>  quiet_DOC := "Use \"$(MAKE) V=1\" to see the verbose compile lines.\n"
> -quiet = @echo $(quiet_DOC)$(eval quiet_DOC:=)"  $1    $@"; $($1)
> +quiet = @echo -e $(quiet_DOC)$(eval quiet_DOC:=)"  $1    $@"; $($1)
>  endif
>  # The user has explicitly enabled quiet compilation.
>  ifeq ($(V),0)
-- 
Exherbo KDE, X.org maintainer

Thread: