On 2/21/25 10:50, Paul Smith wrote:
[...]
Just to be clear, what you say above is not precisely the behavior you
get from GNU Make. GNU Make considers every makefile it reads (for any
reason including "include") to be a goal and tries to rebuild it first
before any other targets are built. If any makefile is rebuilt, then
make re-execs itself from scratch and starts over again.
[...]
But, I'm not exactly sure what use CMake could make of this facility
anyway since CMake files are not makefiles and can't be included...?
[...]
Does GNU Make not recognize rules that declare dependencies of
makefiles? Presumably the makefile could include a rule:
Makefile: CMakefile
$(CMAKE) ...
[...]
Anyway I'm happy to discuss but I doubt this mailing list is the right
place to talk about improvements to CMake :)
Well, bringing the topic back to Automake, what prevents using something
like:
Makefile: ${srcdir}/Makefile.in
${top_builddir}/config.status
${srcdir}/Makefile.in: ${srcdir}/Makefile.am
$(AUTOMAKE) ...
Or do we already have that, but only in maintainer mode?
-- Jacob