Add the directory created by the comma syntax to CLEANDIRS.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sat, 25 Nov 2006 15:46:03 +0000 (15:46 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sat, 25 Nov 2006 15:46:03 +0000 (15:46 +0000)
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue384>
Submitted-by: corecode

share/mk/bsd.patch.mk

index 33c4bd4..e839e57 100644 (file)
@@ -1,4 +1,4 @@
-# $DragonFly: src/share/mk/bsd.patch.mk,v 1.3 2006/09/13 19:33:14 corecode Exp $
+# $DragonFly: src/share/mk/bsd.patch.mk,v 1.4 2006/11/25 15:46:03 pavalos Exp $
 #
 # The include file <bsd.patch.mk> handles patching of files and sources.
 #
@@ -49,6 +49,7 @@ beforedepend: ${PC_}
 
 SRCS:= ${SRCS:N${_PSRC}}
 CLEANFILES:=   ${CLEANFILES} ${_PC}
+CLEANDIRS+=    ${_PC:C|[^/]*$||}
 .endfor
 .endfor
 
@@ -59,6 +60,7 @@ ${_PC}: _PATCHFILE ${CONTRIBDIR}/${_PC} ${_PSRC}
 
 SRCS:= ${SRCS:N${_PC}:S|${_PSRC}|${_PC}|}
 CLEANFILES:=   ${CLEANFILES} ${_PC}
+CLEANDIRS+=    ${_PC:C|[^/]*$||}
 .endfor
 .endfor
 .endif