From 0f608029abdc2fcfa05ff63a77cf11ae2e124328 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Wed, 25 Feb 1998 02:48:28 +0000 Subject: [PATCH] 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.) --- share/mk/bsd.obj.mk | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index c62f3f0b5d7..da0d8b45318 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 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)