This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix dependency tracking for objects in subdirectories
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Fri, 1 Dec 2017 12:04:01 +0000
- Subject: Re: [RFA] Fix dependency tracking for objects in subdirectories
- Authentication-results: sourceware.org; auth=none
- References: <20171130185211.5778-1-tom@tromey.com>
On 11/30/2017 06:52 PM, Tom Tromey wrote:
> On irc, Pedro pointed out that dependencies for objects in
> subdirectories didn't seem to be working.
>
> The bug was that the "-include" for .deps files was using the wrong file
> name for subdirectory objects; e.g., for cli/cli-decode.o it was trying
> to open .deps/cli/cli-decode.o, whereas the correct file is
> cli/.deps/cli-decode.o.
>
> This patch changes how the dep files are found. Tested by touching a
> source file and rebuilding cli/cli-decode.o.
>
> 2017-11-30 Tom Tromey <tom@tromey.com>
>
> * Makefile.in (all_deps_files): New variable.
> Include .Po files using all_deps_files.
OK.
Thanks,
Pedro Alves