From: Peter Avalos Date: Sat, 25 Nov 2006 15:46:03 +0000 (+0000) Subject: Add the directory created by the comma syntax to CLEANDIRS. X-Git-Tag: v2.0.1~4063 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/69944cdb60667597164150e30d14269501f832eb Add the directory created by the comma syntax to CLEANDIRS. Dragonfly-bug: Submitted-by: corecode --- diff --git a/share/mk/bsd.patch.mk b/share/mk/bsd.patch.mk index 33c4bd431a..e839e57283 100644 --- a/share/mk/bsd.patch.mk +++ b/share/mk/bsd.patch.mk @@ -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 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