public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/Makefile.in: silence recipe for creating .deps/ directories
@ 2024-06-04 12:24 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2024-06-04 12:24 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=92a89ee1d99c200adb13728b549222d71b6349ad

commit 92a89ee1d99c200adb13728b549222d71b6349ad
Author: Andrew Burgess <aburgess@redhat.com>
Date:   Mon Jun 3 19:51:40 2024 +0100

    gdb/Makefile.in: silence recipe for creating .deps/ directories
    
    When building in a fresh directory we'll see some output like this:
    
      /bin/sh ../../src/gdb/../mkinstalldirs arch/.deps
      mkdir -p -- arch/.deps
      /bin/sh ../../src/gdb/../mkinstalldirs cli/.deps
      mkdir -p -- cli/.deps
      /bin/sh ../../src/gdb/../mkinstalldirs dwarf2/.deps
      mkdir -p -- dwarf2/.deps
      ... etc ...
    
    this commit uses silent-rules.mk to silence this output, now we'll
    see:
    
      GEN    arch/.deps
      GEN    cli/.deps
      GEN    dwarf2/.deps
      ... etc ...
    
    The recipe that currently generates these directories uses
    mkinstalldirs, as I mention in commit 032e5e0c0c08977, mkinstalldirs
    is deprecated and 'install-sh -d' should be used instead.  This
    silences the 'mkdir -p -- ...' part of the output.
    
    There should be no change in what is actually built after this commit.
    
    Approved-By: Tom Tromey <tom@tromey.com>

Diff:
---
 gdb/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 84bc54b303e..3752bdff79b 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1949,7 +1949,7 @@ all: gdb$(EXEEXT) $(CONFIG_ALL) gdb-gdb.py gdb-gdb.gdb gcore
 	$(POSTCOMPILE)
 
 $(CONFIG_DEP_SUBDIR):
-	$(SHELL) $(srcdir)/../mkinstalldirs $@
+	$(ECHO_GEN) $(SHELL) $(srcdir)/../install-sh -d $@
 
 # Python files need special flags.
 python/%.o: INTERNAL_CFLAGS += $(PYTHON_CFLAGS)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-04 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04 12:24 [binutils-gdb] gdb/Makefile.in: silence recipe for creating .deps/ directories Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).