From owner-freebsd-current Mon Oct 28 11:12:15 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA22240 for current-outgoing; Mon, 28 Oct 1996 11:12:15 -0800 (PST) Received: from po1.glue.umd.edu (po1.glue.umd.edu [129.2.128.44]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA22234 for ; Mon, 28 Oct 1996 11:12:12 -0800 (PST) Received: from professor.eng.umd.edu (professor.eng.umd.edu [129.2.103.23]) by po1.glue.umd.edu (8.8.2/8.7.3) with ESMTP id OAA17059; Mon, 28 Oct 1996 14:12:05 -0500 (EST) Received: from localhost (chuckr@localhost) by professor.eng.umd.edu (8.7.5/8.7.3) with SMTP id OAA01857; Mon, 28 Oct 1996 14:12:03 -0500 (EST) X-Authentication-Warning: professor.eng.umd.edu: chuckr owned process doing -bs Date: Mon, 28 Oct 1996 14:12:03 -0500 (EST) From: Chuck Robey X-Sender: chuckr@professor.eng.umd.edu To: "Rodney W. Grimes" cc: Steve Price , richardc@CSUA.Berkeley.EDU, current@freebsd.org Subject: Re: -current failed In-Reply-To: <199610281842.KAA19478@GndRsh.aac.dev.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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. 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? Just rebuilding them. Seems like a fair trade to me. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------