Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk On recursion, don't recurse "clean" if making "clea...
details: https://anonhg.NetBSD.org/src/rev/e28d1acd089a
branches: trunk
changeset: 513811:e28d1acd089a
user: tv <tv%NetBSD.org@localhost>
date: Tue Aug 14 09:02:26 2001 +0000
description:
On recursion, don't recurse "clean" if making "cleandir". (Related to
bsd.own.mk change that defined clean as a dependency of cleandir.)
diffstat:
share/mk/bsd.subdir.mk | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r ca9cf7dee9ec -r e28d1acd089a share/mk/bsd.subdir.mk
--- a/share/mk/bsd.subdir.mk Tue Aug 14 08:28:24 2001 +0000
+++ b/share/mk/bsd.subdir.mk Tue Aug 14 09:02:26 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.subdir.mk,v 1.41 2001/01/09 02:08:32 sommerfeld Exp $
+# $NetBSD: bsd.subdir.mk,v 1.42 2001/08/14 09:02:26 tv Exp $
# @(#)bsd.subdir.mk 8.1 (Berkeley) 6/8/93
.if !target(__initialized__)
@@ -38,9 +38,15 @@
;; \
esac
+.if make(cleandir)
+__RECURSETARG= ${TARGETS:Nclean}
+.else
+__RECURSETARG= ${TARGETS}
+.endif
+
# for obscure reasons, we can't do a simple .if ${dir} == ".WAIT"
# but have to assign to __TARGDIR first.
-.for targ in ${TARGETS}
+.for targ in ${__RECURSETARG}
.for dir in ${__REALSUBDIR}
__TARGDIR := ${dir}
.if ${__TARGDIR} == ".WAIT"
Home |
Main Index |
Thread Index |
Old Index