]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/Makefile: Print 'GEN' message, and pass SILENT_FLAG more
authorAndrew Burgess <aburgess@redhat.com>
Fri, 5 Apr 2024 09:53:00 +0000 (10:53 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 8 Apr 2024 09:25:40 +0000 (10:25 +0100)
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 <simon.marchi@efficios.com>
gdb/Makefile.in

index c1b3144b175865e7b65b8f22df8bfb48087ce4b9..e9a6247c38d39d9e595b6d50120592da415bbf38 100644 (file)
@@ -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