Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 1996 11:17:49 -0800 (PST)
From:      "Rodney W. Grimes" <rgrimes@GndRsh.aac.dev.com>
To:        chuckr@glue.umd.edu (Chuck Robey)
Cc:        sprice@hiwaay.net, richardc@CSUA.Berkeley.EDU, current@freebsd.org
Subject:   Re: -current failed
Message-ID:  <199610281917.LAA19557@GndRsh.aac.dev.com>
In-Reply-To: <Pine.OSF.3.95.961028140744.1826A-100000@professor.eng.umd.edu> from Chuck Robey at "Oct 28, 96 02:12:03 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610281917.LAA19557>