Weee, long time, no blog.
Dear Lazyweb,
is it at all possible to coerce the devilspawn also known as libtool to actually be quiet when compiling and printing something like the kernel compilation outpout – that is, something like:
GEN autogenerated.c CC file1.c CC file2.c LINK output INSTALL output
I know how to do that with a plain Makefile, and how to do it for autogenerated files like the enumeration types and the GLib marshallers, but I have no clue where to start to make libtool behave.
Thanks,
Emmanuele
it’s at least easy to get it to respect make -s:
http://wednesdaynight.org/diary/2006/9/5
i will leave the rest as an exercise for the reader.
I remember some project to do this a while back. A little searching later, and Google points me to http://kim.tensta.gannert.se/projects/pretty-am/
Perhaps pretty-am can help you:
http://kim.tensta.gannert.se/projects/pretty-am/
Maybe http://kim.tensta.gannert.se/projects/pretty-am/ ?
It’s a bit outdated though; not sure if it still works with recent auto-foo..
It’s mainly with automake; probably outdated now, but here’s how I did it.
many thanks everyone for the link to pretty-am.
I actually anted something like a m4 macro to ship with projects; will look at how pretty-am works and see if it can be used without patching automake directly instead.
@jacob
thanks for the make -s support hack, sir.
Please don’t do this. You are creating a debugging nightmare for some poor soul down the road, who has to figure out why a build of your software failed catastrophically, on an automated system (e.g. Debian buildd network) which provides only limited information (just the make output; no forensic examination of failed build directories possible) and offers no direct access. A simple error in CFLAGS turns into a multi-hour or multi-day ordeal if you hide the commands.
@zack
a “debugging nightmare”? I really can’t see why: the warnings and failures would still be reported as usual; the actual command line for compiling/generating/linking/installing a file would be the only think excised. it’s not like a >/dev/null 2>&1.
and it would still be overridable anyway.
just to be precise, I want something like:
which is already available in the kernel, git and all the new GNOME Perl bindings, as it makes the debugging output actually readable for the people who needs to read it (developers and packagers).
I personnaly use pretty-am as well. Latest patch available works great (but has one little problem, some mv aren’t masked). I have to run a custom script to silent the extra libtool echo and thereafter compilation is all quieter and still shows errors like it should. A real pleasure to work with.