On Fri, Jul 4, 2025 at 12:46 PM Mike Crowe via Bug reports and discussion for GNU make <bug-make@gnu.org> wrote: > Strangely there's no complaint that .real-file doesn't actually exist.
That's intended. Make is silent here to allow dependency files to be generated. > It looks like this change is probably a result of > https://savannah.gnu.org/bugs/?60795 in > 0c2fc00544b89314643561dcb6d78f35eb98da68. Correct. > If this method is no longer supported, You should not mark included makefiles as phony. i don't think marking included files as phony was ever intended. > what is the preferred way to ensure > that generated files are built in a separate step before Make considers > which targets are out of date during the main build? Make reads all makefiles and generates missing or out-of-date makefiles and then if any makefile was updated, make re-executes itself and does all that again. This time there should be no outdated makefiles and make will proceed to build the intended targets. So, as long as you avoid marking included makefiles as phony, make will build generated files and re-execute and proceed to the main build. It is not clear what you want to achieve with marking included makefiles as phony. If you want to have the dependency files to be generated and included, have a look at https://make.mad-scientist.net/papers/advanced-auto-dependency-generation. and https://github.com/dgoncharov/efficient-autodeps-with-gmake regards, Dmitry