From owner-cvs-all Sat Dec 5 13:21:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA12214 for cvs-all-outgoing; Sat, 5 Dec 1998 13:21:34 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA12209; Sat, 5 Dec 1998 13:21:30 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id NAA26697; Sat, 5 Dec 1998 13:19:44 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdI26695; Sat Dec 5 21:19:37 1998 Date: Sat, 5 Dec 1998 13:19:10 -0800 (PST) From: Julian Elischer To: "Robert V. Baron" cc: "Jordan K. Hubbard" , Mike Smith , Greg Lehey , Warner Losh , Steve Kargl , wollman@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: Requiring make depend In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Bob, do you still have md sitting around? That was really cool in MACH I looked at using it under FreeBSD as well, but never finished it. The version of md used in OSF1 had a bug where if the .d file already existed (due to an aborted compile) the new dependencies from the next compile were added to it rather than clearing the old one so if you were compiling something several times the .d file got many copies of the dependencies in it... to Jordan et al. this really did work very well under MACH (based on BSD4.3 build technology.) On 5 Dec 1998, Robert V. Baron wrote: > I hate to find work for you ... > > "Jordan K. Hubbard" writes: > > > Were I to find myself feeling exceedingly bored one day, bored enough > > to take on a controversial topic for no particularly good reason, I'd > > But here's the plan. Suppose you do an -MD the first time when you > compile the files. This will generate .d files for every file > run thru cpp. If you rolled all these files into a .depend file, > you'd have a .depend file generated in real time (and with all the > right flags handed to every compilation -- sometimes a problem). Now > you might want to post process the .d files a bit to remove > absolute paths and ... (call this program md.) > So now you go and make again and it needs to recompile something. You > get new .d files and you run md again to merge the current .d > files into the .depend. > Suppose you abort (^C) the compilation ... the md processing must get > done so hang it as a dependency on .EXIT: > > And you can make depend no more ... > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message