Hi Axel,
On May 28, 2005, at 6:32 AM, Axel Weiß wrote:
James Berry wrote:
o would you like me to make the output of make look pretty? I can
do it
in a way that verbose make output is still an option.
How do you do this? Though automake somehow? Since the Makefile
itself is autogenerated, we certainly don't want to edit that ;) But
yeah, if it's easy and clean, that would be neat.
it's mainly a matter of pulling some otherwise automatically generated
rules into Makefile.am.
There is no other way to tell libtool not to print out all executed
commands than to redirect it's output to /dev/null. Instead, a smart
message about the current state of compilation is written to the
console.
Actually, there is a switch to libtool (--quiet) that does do this.
Thank you very much for your patch. I wasn't real happy with the
ugliness involved in having to override some of the auto-generated
rules, so I came up with a slightly different approach that uses a
helper-script. I'd love your feedback on how well this works.
The one part of this that I'm not completely happy about so far is
that I had to use the .SILENT target, which turns off make output for
everything. I don't think this is completely desired, so I'm still
thinking about that one. I think there may be several solutions to
this, however.
James.
As I promised, this behaviour should be configurable, for debugging
purposes. I chose, to define a configure argument --enable-verbose-
make
(which is disabled by default) to control the console output of make.
This is done in a M4 macro (m4/verbose-make.m4). Depending on wheather
this feature is enabled or not, three new symbols are defined: Q, V
and
AM_MAKEFLAGS. Q and V can have the value '#' or be empty, so the
executed lines in each rule is controlled. AM_MAKEFLAGS can either be
empty or have the vale '-s', in which case make itself becomes silent.
I have implemented this feature for the src subdir only. If you
like it -
it's easy to extend it for other subdirs, too.
I think, this is a rather consistent and straight forward method to
influence the console output of autogenerated makefiles, as it uses
only
concepts offered by autoconf. Patchfile is attached (fitting to rev.
178817).
Cheers,
Axel
--
Humboldt-Universität zu Berlin
Institut für Informatik
Signalverarbeitung und Mustererkennung
Dipl.-Inf. Axel Weiß
Rudower Chaussee 25
12489 Berlin-Adlershof
+49-30-2093-3050
** www.freesp.de **
<pretty-make.diff>
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: c-dev-help@xxxxxxxxxxxxxxxxx
|