bug-automake
[Top][All Lists]
Advanced

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

bug#19847: Print full subdirectory path in "Making ... in ..." messages


From: Karl Wette
Subject: bug#19847: Print full subdirectory path in "Making ... in ..." messages
Date: Thu, 12 Feb 2015 19:18:57 +0100

I would like to suggest a small improvement to the "Making ... in ..." messages printed by recursive Automake. Instead of printing just the name of the directory "make" is about to recurse into, I believe that it would be more informative to print the full path of the directory relative to the top level of the package.

As an illustration, suppose a package has the following directory structure:

./Makefile.am
./packages/apple/include/Makefile.am
./packages/apple/Makefile.am
./packages/apple/src/Makefile.am
./packages/banana/include/Makefile.am
./packages/banana/Makefile.am
./packages/banana/src/Makefile.am
./packages/carrot/include/Makefile.am
./packages/carrot/Makefile.am
./packages/carrot/src/Makefile.am
./packages/Makefile.am

Currently running "make -s" from the top level would print something like:

Making all in packages
Making all in apple
Making all in include
  CC       something...
Making all in src
  CC       something...
Making all in banana
Making all in include
  CC       something...
Making all in src
  CC       something...
Making all in carrot
Making all in include
  CC       something...
Making all in src
  CC       something...

which make it difficult to see which directory make is currently in. A more informative output would be something like:

Making all in packages
Making all in packages/apple
Making all in packages/apple/include
  CC       something...
Making all in packages/apple/src
  CC       something...
Making all in packages/banana
Making all in packages/banana/include
  CC       something...
Making all in packages/banana/src
  CC       something...
Making all in packages/carrot
Making all in packages/carrot/include
  CC       something...
Making all in packages/carrot/src
  CC       something...

Of course, one can always run "make" without "-s" to get make's own "Entering/Leaving directory ..." messages, but this is generally very verbose. If Automake is going to print out its own recursion-related messages, it would be useful it they were slightly more informative.

Also, I believe "make" on MacOSX doesn't print "Entering/Leaving directory ..." messages unless they are explicitly enabled with "-w". So this would make the default output from running "make" on MacOSX a little more informative.

A proposed patch against git commit 6357a63 in the Automake git repository is attached.

Cheers, Karl

Attachment: 0001-Print-full-subdirectory-path-in-Making-.-in-.-messag.patch
Description: Text Data


reply via email to

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