Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 1996 14:34:32 -0600
From:      Steve Price <sprice@hiwaay.net>
To:        chuckr@glue.umd.edu
Cc:        richardc@CSUA.Berkeley.EDU, current@freebsd.org
Subject:   Re: -current failed 
Message-ID:  <3273C758.3F54BC7E@hiwaay.net>
References:  <Pine.OSF.3.95.961027141214.4154E-100000@modem.eng.umd.edu>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3273C758.3F54BC7E>