From owner-freebsd-current Sun Oct 27 12:36:05 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA11553 for current-outgoing; Sun, 27 Oct 1996 12:36:05 -0800 (PST) Received: from fly.HiWAAY.net (root@[204.214.4.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA11547 for ; Sun, 27 Oct 1996 12:36:01 -0800 (PST) Received: from bonsai.hiwaay.net by fly.HiWAAY.net; (8.8.2/1.1.8.2/21Sep95-1003PM) id OAA05670; Sun, 27 Oct 1996 14:35:27 -0600 (CST) Message-ID: <3273C758.3F54BC7E@hiwaay.net> Date: Sun, 27 Oct 1996 14:34:32 -0600 From: Steve Price X-Mailer: Mozilla 2.02 (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: chuckr@glue.umd.edu CC: richardc@CSUA.Berkeley.EDU, current@freebsd.org Subject: Re: -current failed References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. Steve RCS file: /u/FreeBSD/cvs/src/share/mk/bsd.dep.mk,v retrieving revision 1.8 diff -u -r1.8 bsd.dep.mk --- bsd.dep.mk 1996/08/25 05:16:55 1.8 +++ bsd.dep.mk 1996/10/27 20:26:09 @@ -30,6 +30,7 @@ MKDEPCMD?= mkdep DEPENDFILE?= .depend +CLEANFILES+= ${DEPENDFILE} # some of the rules involve .h sources, so remove them from mkdep line .if !target(depend) > I don't know why this all is, I'm not as closely plugged into the make > files as I could be. > > ----------------------------+----------------------------------------------- > 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! > ----------------------------+-----------------------------------------------