]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/Makefile: add some missing config.status dependencies
authorAndrew Burgess <aburgess@redhat.com>
Fri, 5 Apr 2024 09:52:17 +0000 (10:52 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 8 Apr 2024 09:25:39 +0000 (10:25 +0100)
I noticed that for the build targets jit-reader.h, gcore, gdb-gdb.py,
and gdb-gdb.gdb the rules all use the config.status script, but don't
have a dependency on the config.status target.  This means we might
fail to regenerate these targets in a case where config.status, or one
of its dependencies changes.

Two other targets that use config.status do correctly have a
dependency on config.status.

Fixed in this commit by adding the missing dependencies.

There should be no changes in _what_ is generated after this commit.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/Makefile.in

index 9340becbdc970742d85597bda421924c69cd79cb..c1b3144b175865e7b65b8f22df8bfb48087ce4b9 100644 (file)
@@ -2313,16 +2313,16 @@ Makefile: Makefile.in config.status
 run: Makefile
        ./gdb$(EXEEXT) --data-directory=`pwd`/data-directory $(GDBFLAGS)
 
-jit-reader.h: $(srcdir)/jit-reader.in
+jit-reader.h: $(srcdir)/jit-reader.in config.status
        $(SHELL) config.status $@
 
-gcore: $(srcdir)/gcore.in
+gcore: $(srcdir)/gcore.in config.status
        $(SHELL) config.status $@
 
-gdb-gdb.py: $(srcdir)/gdb-gdb.py.in
+gdb-gdb.py: $(srcdir)/gdb-gdb.py.in config.status
        $(SHELL) config.status $@
 
-gdb-gdb.gdb: $(srcdir)/gdb-gdb.gdb.in
+gdb-gdb.gdb: $(srcdir)/gdb-gdb.gdb.in config.status
        $(SHELL) config.status $@
 
 config.h: stamp-h ; @true