LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2008, 10:21 AM   #1
Whyte
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 4
How to make compiling less verbose?


Hello! This is an autoconf/automake related question.

I just started using the Autotools on a project. However, when working on the code, and compiling, I have to scan through the huge walls of text to see if I had any compile warnings. How do I make compiling less verbose?

Example... turning this:
Quote:
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../src/msk0 -I../.. -IC:/PROGRA~1/COMMON~1/GTK/2.0/include/glib-2.0 -IC:/PROGRA~1/COMMON~1/GTK/2.0/lib/glib-2.0/include -g -O2 -MT libmsk0_la-mskaddmul.lo -MD -MP -MF ".deps/libmsk0_la-mskaddmul.Tpo" \
-c -o libmsk0_la-mskaddmul.lo `test -f 'mskaddmul.c' || echo '../../../src/msk0/'`mskaddmul.c; \
then mv ".deps/libmsk0_la-mskaddmul.Tpo" ".deps/libmsk0_la-mskaddmul.Plo"; \
else rm -f ".deps/libmsk0_la-mskaddmul.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I../../../src/msk0 -I../.. "-IC:/PROGRA~1/COMMON~1/GTK/2.0/include/glib-2.0" "-IC:/PROGRA~1/COMMON~1/GTK/2.0/lib/glib-2.0/include" -g -O2 -MT libmsk0_la-mskaddmul.lo -MD -MP -MF .deps/libmsk0_la-mskaddmul.Tpo -c ../../../src/msk0/mskaddmul.c -DDLL_EXPORT -DPIC -o .libs/libmsk0_la-mskaddmul.o
gcc -DHAVE_CONFIG_H -I. -I../../../src/msk0 -I../.. "-IC:/PROGRA~1/COMMON~1/GTK/2.0/include/glib-2.0" "-IC:/PROGRA~1/COMMON~1/GTK/2.0/lib/glib-2.0/include" -g -O2 -MT libmsk0_la-mskaddmul.lo -MD -MP -MF .deps/libmsk0_la-mskaddmul.Tpo -c ../../../src/msk0/mskaddmul.c -o libmsk0_la-mskaddmul.o >/dev/null 2>&1
..into something like this:
Quote:
Building mskaddmul.lo...
Is it possible?
 
Old 09-14-2008, 01:06 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Well, the easiest way would be to pipe "make" through grep. You could do something like:

Code:
echo "Building mskaddmul.lo..."
make | grep "warning"
That would only output any lines containing the line "warning". This might be a little too limiting however, you may want to expand that a bit or else you could end up missing more than you intended.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help compiling using make m_a_b Linux - Software 12 05-24-2007 01:04 PM
How to make ifup verbose? marie@dk Linux - Wireless Networking 3 09-03-2006 10:39 AM
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
compiling make Darkfalz Feather 7 12-16-2004 09:56 AM
compiling tar.bz2... "./configure make make install" doesn't work dodo1983 Linux - Newbie 7 08-17-2004 12:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration