From: Tom Tromey Date: Fri, 30 Oct 2020 16:27:12 +0000 (-0600) Subject: Have stamp-init depend on config.status X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1ec273502937ca128df0ebf3e5961731fdc7272;p=binutils-gdb.git Have stamp-init depend on config.status I recently wrote a patch to modify configure.tgt. However, I did this incorrectly the first time, and had to go back and add another file. After building, I was surprised that my changes did not seem to work. I tracked this down to the fact that init.c had not been rebuilt after my changes -- because the files I added to the build were already older than the existing init.c. This patch changes the gdb Makefile so that init.c will be rebuilt if config.status changes. This should cover various scenarios that cause a re-configure, like editing configure.tgt. 2020-10-30 Tom Tromey * Makefile.in (stamp-init): Depend on config.status. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1433cf901c8..6ebc9bedb63 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-10-30 Tom Tromey + + * Makefile.in (stamp-init): Depend on config.status. + 2020-10-30 Tankut Baris Aktemur * infrun.c (fetch_inferior_event): Temporarily disable pagination. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 8a160896e2c..b3be21bb5a0 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1833,7 +1833,7 @@ INIT_FILES = \ $(COMMON_OBS)))) init.c: stamp-init; @true -stamp-init: $(INIT_FILES) +stamp-init: $(INIT_FILES) config.status @$(ECHO_INIT_C) echo "Making init.c" @rm -f init.c-tmp init.l-tmp @touch init.c-tmp