. Fix 'make spellcheck' to take generated html files from ${.OBJDIR}
instead of ${.CURDIR} . Add 'obj' target depending on _PROGSUBDIR, so 'make obj' for web tree is processed recursively for SUBDIRs . Remove 'cleandir' target. bsd.obj.mk declares it unconditionally and it does absolutely same things. Removing of target from this makefile reduces spawning of ${MAKE} by factor *6* when called from 'www/en' directory!
This commit is contained in:
parent
0042c6a91b
commit
7e7c9ca7be
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=20625
1 changed files with 8 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
# bsd.web.mk
|
||||
# $FreeBSD: www/share/mk/web.site.mk,v 1.57 2004/04/07 13:04:55 phantom Exp $
|
||||
# $FreeBSD: www/share/mk/web.site.mk,v 1.58 2004/04/08 09:43:04 phantom Exp $
|
||||
|
||||
#
|
||||
# Build and install a web site.
|
||||
|
@ -201,7 +201,7 @@ ORPHANS:= ${ORPHANS:N*.sgml}
|
|||
spellcheck:
|
||||
.for _entry in ${GENDOCS}
|
||||
@echo "Spellcheck ${_entry}"
|
||||
@${HTML2TXT} ${HTML2TXTOPTS} ${.CURDIR}/${_entry} | ${ISPELL} ${ISPELLOPTS}
|
||||
@${HTML2TXT} ${HTML2TXTOPTS} ${.OBJDIR}/${_entry} | ${ISPELL} ${ISPELLOPTS}
|
||||
.endfor
|
||||
|
||||
#
|
||||
|
@ -282,18 +282,6 @@ clean: _PROGSUBDIR
|
|||
${RM} -f Errs errs mklog ${GENDOCS} ${CLEANFILES}
|
||||
.endif
|
||||
|
||||
#
|
||||
# Really clean things up.
|
||||
#
|
||||
.if !target(cleandir)
|
||||
cleandir: clean _PROGSUBDIR
|
||||
${RM} -f ${.CURDIR}/tags .depend
|
||||
.if ${.OBJDIR} != ${.CURDIR} && exists(${.OBJDIR}/)
|
||||
${RM} -rf ${.OBJDIR}
|
||||
.endif
|
||||
@if [ -L ${.CURDIR}/obj ]; then ${RM} -f ${.CURDIR}/obj; fi
|
||||
.endif
|
||||
|
||||
#
|
||||
# Install targets: before, real, and after.
|
||||
#
|
||||
|
@ -356,4 +344,10 @@ _PROGSUBDIR: .USE
|
|||
|
||||
.include <bsd.obj.mk>
|
||||
|
||||
#
|
||||
# Process 'make obj' recursively (should be declared *after* inclusion
|
||||
# of bsd.obj.mk)
|
||||
#
|
||||
obj: _PROGSUBDIR
|
||||
|
||||
# THE END
|
||||
|
|
Loading…
Reference in a new issue