From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Ingham To: Tom Tromey Cc: Cor van Loos , Subject: Re: Building Insight (2) Date: Thu, 29 Jun 2000 18:00:00 -0000 Message-id: References: <200006300037.RAA29272@ferrule.cygnus.com> X-SW-Source: 2000-q2/msg00367.html 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