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.)
This commit is contained in:
Bruce Evans 1998-02-25 02:48:28 +00:00
parent 47f049d7d9
commit 0f608029ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33815

View File

@ -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)