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  <tromey@adacore.com>

	* Makefile.in (stamp-init): Depend on config.status.
This commit is contained in:
Tom Tromey 2020-10-30 10:27:12 -06:00
parent b8fd9b80ee
commit b1ec273502
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2020-10-30 Tom Tromey <tromey@adacore.com>
* Makefile.in (stamp-init): Depend on config.status.
2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* infrun.c (fetch_inferior_event): Temporarily disable pagination.

View File

@ -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