Do not descend into `tools' on make clean{dir,} if USETOOLS=no, as doing

so without TOOLDIR set will blow up.
This commit is contained in:
jwise 2001-10-10 17:20:15 +00:00
parent 4c947455fc
commit 5afee0c76e
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.134 2001/10/08 23:42:21 tv Exp $
# $NetBSD: Makefile,v 1.135 2001/10/10 17:20:15 jwise Exp $
# This is the top-level makefile for building NetBSD. For an outline of
# how to build a snapshot or release, as well as other release engineering
@ -69,7 +69,10 @@ _J= -j${NBUILDJOBS}
SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys
.if make(cleandir) || make(obj)
SUBDIR+= distrib tools
SUBDIR+= distrib
.if ${USETOOLS} != "no"
SUBDIR+= tools
.endif
.ifdef MAKEOBJDIRPREFIX
SUBDIR+= etc
.endif