bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #64288] The flag --no-print-directory becomes effective too ear


From: Dmitry Goncharov
Subject: Re: [bug #64288] The flag --no-print-directory becomes effective too early
Date: Wed, 14 Jun 2023 09:52:13 -0400

On Fri, Jun 9, 2023 at 10:47 AM Masahiro Yamada <masahiroy@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 <psmith@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]