This is the mail archive of the insight@sourceware.cygnus.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Building Insight (2)


Also sprach Tom Tromey:

> Jim> P.S. I also agree with Keith that libgui should NOT be trying to
> Jim> make the tclIndex as part of the build.  It is too fragile,
> Jim> particularly since the wrong version of Itclsh can cause really
> Jim> bad things to happen...
> 
> One approach to this, which is both controversial and widely
> practiced, is to check in the derived file and make rebuilding it
> conditional upon configuring with --enable-maintainer-mode.
> This is easiest if you're using automake, but it is also fairly easy
> without it.
> 
> Tom

That is what I tend to do - but in a sloppy sort of way...  In Insight we
just have a tclIndex target, which no other target depends on.  Then I just
remember that if I change any of the Tcl files, I need to run it.  This
depends on the developer being disciplined, but rebuilding the index with
every build is more not right, since the vast majority of the people who
build Insight are NOT messing with the libgui tcl files, and so for them to
build the index just adds an element of risk with no real benefit.

Jim
-- 
Jim Ingham                                 jingham@apple.com
Apple Computer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]