Move webcheck target to web.site.mk. It is also re-done in relative

manner, i.e.  calling 'make webcheck' in www/ru/java directory will cause
checking hrefs under http://www.FreeBSD.org/ru/java/
This commit is contained in:
Alexey Zelkin 2004-04-05 14:21:26 +00:00
parent 1150235fc0
commit 285a5526cf
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=20518
2 changed files with 18 additions and 11 deletions

View file

@ -63,6 +63,12 @@ HTML2TXTOPTS?= -dump ${HTML2TXTFLAGS}
ISPELL?= ispell
ISPELLOPTS?= -l -p /usr/share/dict/freebsd ${ISPELLFLAGS}
WEBCHECK?= ${PREFIX}/bin/webcheck
WEBCHECKOPTS?= -ab ${WEBCHECKFLAGS}
WEBCHECKDIR?= /webcheck
WEBCHECKINSTALLDIR?= ${DESTDIR}${WEBCHECKDIR}
WEBCHECKURL?= http://www.FreeBSD.org/${WEBBASE:S/data//}/${WEBDIR:S/data//}/
#
# Install dirs derived from the above.
#
@ -192,6 +198,17 @@ spellcheck:
@${HTML2TXT} ${HTML2TXTOPTS} ${.CURDIR}/${_entry} | ${ISPELL} ${ISPELLOPTS}
.endfor
#
# Check installed page's hypertext references. Checking is done relatively
# to ${.CURDIR} value, i.e. calling 'make webcheck' in www/ru/java
# directory will force checking all URLs at http://www.FreeBSD.org/ru/java/
#
# NOTE: webcheck's output always stored to ${DESTDIR}/webcheck directory.
#
webcheck:
@[ -d ${WEBCHECKINSTALLDIR} ] || ${MKDIR} ${WEBCHECKINSTALLDIR}
${WEBCHECK} ${WEBCHECKOPTS} -o ${WEBCHECKINSTALLDIR} ${WEBCHECKURL}
##################################################################
# Main Targets