From: Andrew Burgess Date: Fri, 5 Apr 2024 09:53:00 +0000 (+0100) Subject: gdb/Makefile: Print 'GEN' message, and pass SILENT_FLAG more X-Git-Tag: gdb-15-branchpoint~467 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6a12c14513f1c46a74a78eebe0e57a7e3c93846;p=thirdparty%2Fbinutils-gdb.git gdb/Makefile: Print 'GEN' message, and pass SILENT_FLAG more The targets that use config.status to regenerate themselves don't currently follow the silent rules that the rest of GDB's Makefile does. For example, touch the gdb/gcore.in file and then 'make all' in the gdb/ directory prints: /bin/sh config.status gcore config.status: creating gcore In this commit I make use of the silent-rules.mk mechanism for these targets, now we get: GEN gcore Which matches the rest of our Makefile. Obviously, if you pass 'V=1' to the build then you'll get the old output back. There's no change in what is generated after this commit. Approved-By: Simon Marchi --- diff --git a/gdb/Makefile.in b/gdb/Makefile.in index c1b3144b175..e9a6247c38d 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2307,31 +2307,31 @@ subdir_do: force done Makefile: Makefile.in config.status - $(SHELL) config.status $@ + $(ECHO_GEN) $(SHELL) config.status $(SILENT_FLAG) $@ .PHONY: run run: Makefile ./gdb$(EXEEXT) --data-directory=`pwd`/data-directory $(GDBFLAGS) jit-reader.h: $(srcdir)/jit-reader.in config.status - $(SHELL) config.status $@ + $(ECHO_GEN) $(SHELL) config.status $(SILENT_FLAG) $@ gcore: $(srcdir)/gcore.in config.status - $(SHELL) config.status $@ + $(ECHO_GEN) $(SHELL) config.status $(SILENT_FLAG) $@ gdb-gdb.py: $(srcdir)/gdb-gdb.py.in config.status - $(SHELL) config.status $@ + $(ECHO_GEN) $(SHELL) config.status $(SILENT_FLAG) $@ gdb-gdb.gdb: $(srcdir)/gdb-gdb.gdb.in config.status - $(SHELL) config.status $@ + $(ECHO_GEN) $(SHELL) config.status $(SILENT_FLAG) $@ config.h: stamp-h ; @true stamp-h: $(srcdir)/config.in config.status - $(SHELL) config.status config.h + $(ECHO_GEN) $(SHELL) config.status $(SILENT_FLAG) config.h nm.h: stamp-nmh ; @true stamp-nmh: config.status - $(SHELL) config.status nm.h + $(ECHO_GEN) $(SHELL) config.status $(SILENT_FLAG) nm.h # Files included from config.status or the configure script. When # these change the configure script doesn't need regenerating, but its @@ -2345,7 +2345,7 @@ config_status_deps = \ $(srcdir)/../bfd/config.bfd config.status: $(config_status_deps) - $(SHELL) config.status --recheck + $(ECHO_GEN) $(SHELL) config.status $(SILENT_FLAG) --recheck ACLOCAL = aclocal