summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.obj.mk
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-02-25 02:48:28 +0000
committerbde <bde@FreeBSD.org>1998-02-25 02:48:28 +0000
commit4c126f13e855e06917efafb95fea2d261243ab90 (patch)
tree1d3ed5907fa82656ca10c8cf9e8dc307afc85a94 /share/mk/bsd.obj.mk
parent586efaf85d285fea40e0e51d2c0c4de42bfae2e1 (diff)
downloadFreeBSD-src-4c126f13e855e06917efafb95fea2d261243ab90.zip
FreeBSD-src-4c126f13e855e06917efafb95fea2d261243ab90.tar.gz
Remove ${CLEANDIRS} in the default clean rule, so that bsd.prog.mk can
use the default without losing any (currently unused) features. (CLEANDIRS is only used by for libgmp and libmp via bsd.lib.mk, and only documented everywhere it is supported except of course where it is actually used.)
Diffstat (limited to 'share/mk/bsd.obj.mk')
-rw-r--r--share/mk/bsd.obj.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk
index c62f3f0..da0d8b4 100644
--- a/share/mk/bsd.obj.mk
+++ b/share/mk/bsd.obj.mk
@@ -1,4 +1,4 @@
-# $Id: bsd.obj.mk,v 1.20 1997/04/30 17:04:11 bde Exp $
+# $Id: bsd.obj.mk,v 1.21 1997/12/19 18:48:45 bde Exp $
#
# The include file <bsd.obj.mk> handles creating the 'obj' directory
# and cleaning up object files, etc.
@@ -6,7 +6,9 @@
#
# +++ variables +++
#
-# CLEANFILES Additional files to remove for the clean and cleandir targets.
+# CLEANDIRS Additional directories to remove for the clean target.
+#
+# CLEANFILES Additional files to remove for the clean target.
#
# MAKEOBJDIR A pathname for the directory where the targets
# are built. Note: MAKEOBJDIR is an *enviroment* variable
@@ -32,7 +34,7 @@
# +++ targets +++
#
# clean:
-# remove ${CLEANFILES}
+# remove ${CLEANFILES}; remove ${CLEANDIRS} and all contents.
#
# cleandir:
# remove the build directory (and all its contents) created by obj
@@ -121,6 +123,9 @@ clean: _SUBDIR
.if defined(CLEANFILES) && !empty(CLEANFILES)
rm -f ${CLEANFILES}
.endif
+.if defined(CLEANDIRS) && !empty(CLEANDIRS)
+ rm -rf ${CLEANDIRS}
+.endif
.endif
.if !target(checkdpadd)
OpenPOWER on IntegriCloud