Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jan 2011 21:01:33 -0800
From:      Charlie Kester <corky1951@comcast.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Colorized compiler/linker messages
Message-ID:  <20110123050133.GA87892@comcast.net>
In-Reply-To: <4D3B8BD4.5010606@centurytel.net>
References:  <4D3B8BD4.5010606@centurytel.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat 22 Jan 2011 at 18:00:52 PST Michael D. Norwick wrote:
>Good Day,
>
>I have seen this for some time when building ports and was wondering how 
>it was done.  GCC when compiling and linking certain programs, ebook for 
>example, emits messages in various colors.  How is that done?  Where 
>does one find what the various colors are supposed to signify?  Or, is
>it just because it's more appealing?

CMake can be used to generate Makefiles that produce colorized output,
and I would wager that it's being used by most of the ports where you're
seeing color. 

But there are many tools a developer might use for this.  For example, I
found this in my bookmarks file:

http://phil.freehackers.org/pretty-make/index.html

I think it's mostly aesthetics, but some people claim that using
different colors for different build steps makes it easier to monitor
the progress of the build.  For example, if the link or install steps
are a different color than the configuration or compile steps, you can
see that the build is in its final stages even if you're on the other
side of the room.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110123050133.GA87892>