From 483a9ff659ae23d235105fa02a60030fe5ed7cba Mon Sep 17 00:00:00 2001 From: Alexey Zelkin Date: Sun, 23 Apr 2000 14:31:21 +0000 Subject: [PATCH] Implement more clever mechanizm to clean external directories (in doc/ tree) --- en/web.mk | 7 ++++++- share/mk/web.site.mk | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/en/web.mk b/en/web.mk index 6d64178b28..73ca2926dc 100644 --- a/en/web.mk +++ b/en/web.mk @@ -1,5 +1,5 @@ # bsd.web.mk -# $FreeBSD: www/en/web.mk,v 1.27 1999/12/23 01:14:35 kuriyama Exp $ +# $FreeBSD: www/en/web.mk,v 1.28 2000/04/20 16:39:10 phantom Exp $ # # Build and install a web site. @@ -127,6 +127,11 @@ orphans: # .if !target(clean) clean: _PROGSUBDIR +.if defined(DIRS_TO_CLEAN) && !empty(DIRS_TO_CLEAN) +.for dir in ${DIRS_TO_CLEAN} + (cd ${dir} && ${MAKE} clean) +.endfor +.endif rm -f Errs errs mklog ${GENDOCS} ${LOCAL} ${CLEANFILES} .endif diff --git a/share/mk/web.site.mk b/share/mk/web.site.mk index 6d64178b28..73ca2926dc 100644 --- a/share/mk/web.site.mk +++ b/share/mk/web.site.mk @@ -1,5 +1,5 @@ # bsd.web.mk -# $FreeBSD: www/en/web.mk,v 1.27 1999/12/23 01:14:35 kuriyama Exp $ +# $FreeBSD: www/en/web.mk,v 1.28 2000/04/20 16:39:10 phantom Exp $ # # Build and install a web site. @@ -127,6 +127,11 @@ orphans: # .if !target(clean) clean: _PROGSUBDIR +.if defined(DIRS_TO_CLEAN) && !empty(DIRS_TO_CLEAN) +.for dir in ${DIRS_TO_CLEAN} + (cd ${dir} && ${MAKE} clean) +.endfor +.endif rm -f Errs errs mklog ${GENDOCS} ${LOCAL} ${CLEANFILES} .endif