GNU bug report logs - #19847
Print full subdirectory path in "Making ... in ..." messages

Previous Next

Package: automake;

Reported by: Karl Wette <karl.wette <at> aei.mpg.de>

Date: Thu, 12 Feb 2015 18:54:02 UTC

Severity: wishlist

Tags: patch

Full log


View this message in rfc822 format

From: Karl Wette <karl.wette <at> aei.mpg.de>
To: 19847 <at> debbugs.gnu.org
Subject: bug#19847: Print full subdirectory path in "Making ... in ..." messages
Date: Thu, 12 Feb 2015 19:18:57 +0100
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
[0001-Print-full-subdirectory-path-in-Making-.-in-.-messag.patch (text/x-patch, attachment)]

This bug report was last modified 10 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.