From owner-freebsd-current Sun Oct 27 21:58:27 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA01539 for current-outgoing; Sun, 27 Oct 1996 21:58:27 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA01509 for ; Sun, 27 Oct 1996 21:58:21 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id SAA22786 for ; Sun, 27 Oct 1996 18:07:52 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.7.6/8.6.9) id MAA08278; Mon, 28 Oct 1996 12:49:10 +1100 Date: Mon, 28 Oct 1996 12:49:10 +1100 From: Bruce Evans Message-Id: <199610280149.MAA08278@godzilla.zeta.org.au> To: chuckr@glue.umd.edu, sprice@hiwaay.net Subject: Re: -current failed Cc: current@freebsd.org, richardc@CSUA.Berkeley.EDU Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> 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. Use `make clean cleandepend' to clean everything. If you use a separate object tree, then it is easy to check that this worked (there should be no files except directories in the object tree). >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. >+CLEANFILES+= ${DEPENDFILE} This is faster, because `make clean cleandepend' traverses the tree twice. Bruce