How to suppress “Entering/Leaving…” messages when invoking make recursively?

The “Entering/Leaving…” messages when invoking another make by a make is kind of annoying.

Is it possible to suppress these messages and how to suppress them?

For GNU make, it is controlled by options:

-w, –print-directory
Print a message containing the working directory before and after other processing. This may be useful for tracking down errors from complicated nests of recursive make commands.

–no-print-directory
Turn off -w, even if it was turned on implicitly.

So you can add the --no-print-directory option when invoking another make.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *