From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 3F78A3858D32; Mon, 8 Apr 2024 09:26:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F78A3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712568419; bh=RSE384FThh214rh1WUHp2rls5EL+ZfliGGgiZ6zgESE=; h=From:To:Subject:Date:From; b=B7PA6wbWApD/gqoNrAuvZR5FyUqlY7lm5NccOEr5P4tNWe7ggKg3JoDS1gzRMAFja TQ9/8HrHkimgXGQpZNQWkTGrtU6P5qwMJCtst7MSA+JQcU3NNCD4IALD/j+phPO8c8 JjubmphMB8M62N34gVNUGr8LylXWiRHWuGoGa0H4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/Makefile: add gcore to the 'all' target dependency list X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: ecc3c386677c2c096b2d589588dd26d21a0fb476 X-Git-Newrev: cc7ae3ac7e7e07b3fb8e6050bd728b466e6410e4 Message-Id: <20240408092659.3F78A3858D32@sourceware.org> Date: Mon, 8 Apr 2024 09:26:59 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dcc7ae3ac7e7e= 07b3fb8e6050bd728b466e6410e4 commit cc7ae3ac7e7e07b3fb8e6050bd728b466e6410e4 Author: Andrew Burgess Date: Fri Apr 5 09:56:32 2024 +0100 gdb/Makefile: add gcore to the 'all' target dependency list =20 The gcore script is initially generated by the configure process, just like gdb-gdb.gdb and gdb-gdb.py. However if the gdb/gcore.in input source is modified then 'make all' in the gdb/ directory does not regenerate the gcore script. =20 This is different than the gdb-gdb.gdb and gdb-gdb.py files, if their input is updated then 'make all' will regenerate these files. =20 The difference is that for gdb-gdb.* there is an explicit dependency between the 'all' target and the generated file, this dependency is missing for gcore. =20 This commit adds the dependency. Now, if gcore.in is changed, running 'make all' will regenerate the gcore script. =20 There is no change in _what_ is generated after this commit. =20 Approved-By: Simon Marchi Diff: --- gdb/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index a9f641c0659..df044288b5e 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1938,7 +1938,7 @@ generated_files =3D \ # Flags needed to compile Python code PYTHON_CFLAGS =3D @PYTHON_CFLAGS@ =20 -all: gdb$(EXEEXT) $(CONFIG_ALL) gdb-gdb.py gdb-gdb.gdb +all: gdb$(EXEEXT) $(CONFIG_ALL) gdb-gdb.py gdb-gdb.gdb gcore @$(MAKE) $(FLAGS_TO_PASS) DO=3Dall "DODIRS=3D$(SUBDIRS)" subdir_do =20 # Rule for compiling .c files in the top-level gdb directory.