Subject: Re: HEADS UP: new toolchain info! (now default on i386)
To: Ian Fry <Ian.Fry@sophos.com>
From: Eric Haszlakiewicz <erh@nimenees.com>
List: current-users
Date: 09/27/2001 10:07:37
On Thu, Sep 27, 2001 at 12:37:56PM +0100, Ian Fry wrote:
> been built, as there is an 'ar' in tools/toolchain/toolchain/binutils (for
> some reason, 'make obj' didn't create the obj links in the tools tree
> (checking the makefile, it looks like this will only happen if 'MKOBJDIRS' is
> set - is that right? I don't need that for the rest of the tree)
	I think adding "tools" to a SUBDIR line inside of an if make(obj) in
the top level Makefile should fix that.  I'd say a cleandir should probably
descend into there too, but not the cleandir during a make build.  Something
like this maybe? :

Index: Makefile
===================================================================
RCS file: /cvsroot/basesrc/Makefile,v
retrieving revision 1.131
diff -u -r1.131 Makefile
--- Makefile	2001/09/22 12:30:13	1.131
+++ Makefile	2001/09/27 15:07:19
@@ -70,6 +70,9 @@
 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys
 .if make(cleandir) || make(obj)
 SUBDIR+= distrib
+.if make(cleandir) && !defined(_BUILD_CLEANDIR)
+SUBDIR+= tools
+.endif
 .ifdef MAKEOBJDIRPREFIX
 SUBDIR+= etc
 .endif
@@ -160,7 +163,7 @@
 
 do-cleandir:
 .if !defined(UPDATE) && !defined(NOCLEANDIR)
-	${MAKE} ${_J} ${_M} cleandir
+	${MAKE} ${_J} ${_M} _BUILD_CLEANDIR=yes cleandir
 .endif
 
 do-make-obj: