On Fri, Jun 9, 2023 at 10:47 AM Masahiro Yamada <masahi...@kernel.org> wrote:
> Previously, I was able to do > "MAKEFLAGS += --no-print-directory" in a single place, > but it is now impossible. Prior versions of make ignored the "MAKEFLAGS += --no-print-directory" setting. You can see that even the "Leaving directory..." message was not printed. The current make honors the setting and suppresses printing the directory, as instructed by the makefile. It is unfortunate that the build system expected make to ignore the setting. if i understood you correctly, you need the message to be printed when make changes its cwd and not printed when make stays in its cwd, correct? > On Fri, Jun 9, 2023 at 11:51 AM Paul Smith <psm...@gnu.org> wrote: In any event, if that's what you want it's clearly impossible to implement that from within the child makefile because it has no idea whether the parent make changed directories or not. Only the parent make can know that, so only the parent make can add (or not) that option. Paul, does it look reasonable to you to modify make to avoid printing the message when submake stays in the same directory? Does anybody or any program need this message when the directory stays? The parent make would have to figure out whether to print the message and tell the submake. regards, Dmitry