Article View: gnu.misc.discuss
Article #75688Re: gnu make dependency determination: is there a better way?
From: Dave Brennan
Date: Wed, 16 May 1990 15:03
Date: Wed, 16 May 1990 15:03
25 lines
2290 bytes
2290 bytes
I just talked about this a little with someone and came up with a possible
solution that I didn't think of last night.
First, the rule for RCS is changed (in the Makefile) so that .c, .h and
whatever other files depend on the RCS archive files. Without out any rule
changes, Gnu Make only attempts to check out files from an RCS archive if
the file doesn't exist. Once the file exists Gnu make won't try to check
it out again, even if the date of the RCS archive changes.
By changing the rule, a command set can be run whenever the date on the RCS
archive changes. These commands could determine if the file needs to be
checked out again. This is possible because although the dependency is not
on date of the RCS file, this date will change when a new version is
checked in - essentially indicating that futher dependency checks are
needed.
I plan on getting this working correctly within the next week or so. If
you are intrested in the exact solution, just drop me some mail.'
--
_________
Dave Brennan, User Interfaces, Data General Corp. / brennan@dg-rtp.dg.com
Research Triangle Park, North Carolina, 27709 / ...mcnc!rti!dg-rtp!brennan
Hm: (919) 460-5725 Wk: (919) 248-6330 _________/ dave_brennan@rpitsmts.bitnet
Technical Details
Message-ID:
<BRENNAN.90May16110327@bach.rtp.dg.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!xanth!mcnc!rti!dg-rtp!dg-rtp!brennanReferences:
<BRENNAN.90May15185929@bach.rtp.dg.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,a5f98d96419bba48 X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1025b4,a5f98d96419bba48 X-Google-Attributes: gid1025b4,public X-Google-Thread: 10f9b1,a5f98d96419bba48 X-Google-Attributes: gid10f9b1,public X-Google-ArrivalTime: 1990-05-16 09:08:32 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!xanth!mcnc!rti!dg-rtp!dg-rtp!brennan From: brennan@rtp.dg.com (Dave Brennan) Newsgroups: gnu.misc.discuss,comp.unix.wizards,comp.unix.questions Subject: Re: gnu make dependency determination: is there a better way? Message-ID: <BRENNAN.90May16110327@bach.rtp.dg.com> Date: 16 May 90 15:03:27 GMT References: <BRENNAN.90May15185929@bach.rtp.dg.com> Sender: usenet@dg-rtp.dg.com (Usenet Administration) Organization: Data General, RTP, NC Lines: 25 Posted: Wed May 16 16:03:27 1990 In-Reply-To: brennan@rtp.dg.com's message of 15 May 90 18:59:29