From 47385801998c2808c5f28dce777497f16b9f6a10 Mon Sep 17 00:00:00 2001 From: rillig Date: Thu, 15 Nov 2007 12:05:09 +0000 Subject: When cleaning up the working directories in WRKOBJDIR, also try to remove the category directory, to not leave unnecessary empty directories around. --- mk/bsd.pkg.clean.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/bsd.pkg.clean.mk b/mk/bsd.pkg.clean.mk index bb5c860ec1c..52716f81f80 100644 --- a/mk/bsd.pkg.clean.mk +++ b/mk/bsd.pkg.clean.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.clean.mk,v 1.11 2007/07/02 20:24:27 adrianp Exp $ +# $NetBSD: bsd.pkg.clean.mk,v 1.12 2007/11/15 12:05:09 rillig Exp $ # # This Makefile fragment is included to bsd.pkg.mk and defines the # relevant variables and targets for the "clean" phase. @@ -74,6 +74,7 @@ su-do-clean: . if defined(WRKOBJDIR) ${_PKG_SILENT}${_PKG_DEBUG} \ ${RMDIR} ${BUILD_DIR} 2>/dev/null || ${TRUE}; \ + ${RMDIR} ${BUILD_DIR:H} 2>/dev/null || ${TRUE}; \ ${RM} -f ${WRKDIR_BASENAME} 2>/dev/null || ${TRUE} . endif -- cgit v1.2.3