On Mon, 2021-10-25 at 17:51 -0400, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > On Monday, October 25, 2021, Alejandro Colomar (man-pages) < > alx.manpa...@gmail.com> wrote: > > Why do I do this? Because, if you remove a file from your tree, an > > old .d file will require that file and make your build fail, > > requiring you to clean before making again. > > This has been solved long ago. Check the awesome advanced dependency > generation article by Paul.
FYI: http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/ The issue you raise (as well as others) is discussed, hopefully clearly, in this article [*]. [*] http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/#depdelete