From owner-freebsd-current Mon Oct 28 11:19:14 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA22780 for current-outgoing; Mon, 28 Oct 1996 11:19:14 -0800 (PST) Received: from GndRsh.aac.dev.com (GndRsh.aac.dev.com [198.145.92.241]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA22772 for ; Mon, 28 Oct 1996 11:19:10 -0800 (PST) Received: (from rgrimes@localhost) by GndRsh.aac.dev.com (8.7.5/8.7.3) id LAA19557; Mon, 28 Oct 1996 11:17:49 -0800 (PST) From: "Rodney W. Grimes" Message-Id: <199610281917.LAA19557@GndRsh.aac.dev.com> Subject: Re: -current failed In-Reply-To: from Chuck Robey at "Oct 28, 96 02:12:03 pm" To: chuckr@glue.umd.edu (Chuck Robey) Date: Mon, 28 Oct 1996 11:17:49 -0800 (PST) Cc: sprice@hiwaay.net, richardc@CSUA.Berkeley.EDU, current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > On Mon, 28 Oct 1996, Rodney W. Grimes wrote: > > > > Chuck Robey wrote: > > > > > > > > > > > > Doing a make world automatically does the make obj for you. Make cleandir > > > > kills them. If there isn't a obj directory avaialble when the make > > > > starts, then the obj's fall into the source directories. One very common > > > > error is the do make clean, and think your objs are really clean. They > > > > aren't, the .depend files survive, and cause grief. > > > > > > > > > > Attached is a patch to /usr/share/mk/bsd.dep.mk that I use to get rid > > > of the .depend file when make clean is done. I didn't commit it b/c I > > > don't think everybody (or even the majority) wants this, but you > > > might give it a try if you like the functionality. > > > > Ugly hack, that is what ``make cleandir'' does for you, thus your patch > > is not needed. ``make cleandist'' tears done and rebuilds the obj tree > > and links. > > That's not really true. His patch just causes the make clean to delete > the .depend files, and you can immediately do a make depend/make all. If > you do that following a make cleandir, you end up with object files > scattered through your sources, because the make cleandir wiped away your > obj directories. Wonder which one is faster :-) : make cleandir obj make clean cleandepend > I'm not saying that with some forethought, you couldn't use make cleandir, > because I use it myself. I'm saying that making things more complicated > is causing people to make errors, which are being posted here, and those > errors could be painlessly eliminated via the patch. What's the gain in > not doing the clean of the .depend files? Saving time not building new .depend files when you don't need to I often have .depends that are correct, and know that, but have obj files that are in need of forcable rebuild. > Just rebuilding them. Seems like a fair trade to me. Tradition says that ``make clean'' does not remove the .depend files. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation, Inc. Reliable computers for FreeBSD