Date: Sat, 5 Dec 1998 13:19:10 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: "Robert V. Baron" <rvb@cs.cmu.edu> Cc: "Jordan K. Hubbard" <jkh@zippy.cdrom.com>, Mike Smith <mike@smith.net.au>, Greg Lehey <grog@lemis.com>, Warner Losh <imp@village.org>, Steve Kargl <sgk@troutmask.apl.washington.edu>, wollman@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: Requiring make depend Message-ID: <Pine.BSF.3.95.981205131431.6676A-100000@current1.whistle.com> In-Reply-To: <yzsww46ftsr.fsf@sicily.odyssey.cs.cmu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <jkh@zippy.cdrom.com> 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 <foo>.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 <foo>.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 <foo>.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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.981205131431.6676A-100000>