git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] More build output cleaning up

From
Sergey Vlasov <vsu@altlinux.ru>
Date
Mar 11, 2007, 15:48 UTC
Message-ID
<20070311184827.a98691c3.vsu@altlinux.ru>
In-Reply-To
<81b0412b0703061513g7aafc9daq46feea69d969089a@mail.gmail.com>
On Wed, 7 Mar 2007 00:13:08 +0100 Alex Riesen wrote:
Show 28 quoted lines
> - print output file name for .c files
> - suppress output of the names of subdirectories when make changes into them
> - use GEN prefix for makefile generation in perl/
>
> Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
> ---
>  Makefile      |    8 +++++---
>  perl/Makefile |    2 +-
>  2 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 72d4291..eb6c421 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -605,14 +605,16 @@ ifdef NO_PERL_MAKEMAKER
>  	export NO_PERL_MAKEMAKER
>  endif
>  ifndef V
> -	QUIET_CC       = @echo '   ' CC $<;
> +	QUIET_CC       = @echo '   ' CC $@;
>  	QUIET_AR       = @echo '   ' AR $@;
>  	QUIET_LINK     = @echo '   ' LINK $@;
>  	QUIET_BUILT_IN = @echo '   ' BUILTIN $@;
>  	QUIET_GEN      = @echo '   ' GEN $@;
>  	QUIET_SUBDIR0  = @subdir=
> -	QUIET_SUBDIR1  = ;echo '   ' SUBDIR $$subdir; $(MAKE) -C$$subdir
> +	QUIET_SUBDIR1  = ;echo '   ' SUBDIR $$subdir; \
> +			 $(MAKE) --no-print-directory -C $$subdir

Using --no-print-directory will break movement to the location of an error/warning message at least in vim (emacs will probably have problems too), if the error is in some file in a subdirectory. The problem is that the nested make will output paths relative to the subdirectory, but without "Entering directory..." messages the editor will not know that filenames should be interpreted relative to that subdirectory.

Currently this problem is not visible, because subdirectories with their own Makefiles (perl/ and git-gui/) do not contain C code - but the problem will appear, e.g., if Git.xs will be added again.

Previous: Alex RiesenNext: Alex Riesen
Message 3 of 4 in “More build output cleaning up”
  1. More build output cleaning upAlex Riesen, Mar 6, 2007
  2. Alex RiesenMar 6, 2007
  3. Sergey VlasovMar 11, 2007
  4. Alex RiesenMar 12, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.