summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-15 12:05:09 +0000
committerrillig <rillig@pkgsrc.org>2007-11-15 12:05:09 +0000
commit47385801998c2808c5f28dce777497f16b9f6a10 (patch)
tree0f48ff6929e5bc3c45d80e3f5153e9e498e3447f
parent44b0ed5ecf5271379f17aecdf04571a90597f0b1 (diff)
downloadpkgsrc-47385801998c2808c5f28dce777497f16b9f6a10.tar.gz
When cleaning up the working directories in WRKOBJDIR, also try to
remove the category directory, to not leave unnecessary empty directories around.
-rw-r--r--mk/bsd.pkg.clean.mk3
1 files changed, 2 insertions, 1 deletions
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