Force NO_TIDY for the ports web pages, since it takes a long time to

run tidy on these huge HTML files, and the files are valid HTML when
generated by portindex, even without tidy.

Running without tidy caused the build time to go from ~8 minutes to ~1
minute on my test machine.  An additional bonus is that the generated
HTML files are now significantly smaller.
This commit is contained in:
Simon L. B. Nielsen 2004-11-05 12:47:07 +00:00
parent fc804e0510
commit 1df8c0dd28
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=22791

View file

@ -1,4 +1,4 @@
# $FreeBSD: www/en/ports/Makefile,v 1.36 2003/05/11 21:16:56 ceri Exp $
# $FreeBSD: www/en/ports/Makefile,v 1.37 2004/09/25 11:59:58 simon Exp $
.if exists(../Makefile.conf)
.include "../Makefile.conf"
@ -16,6 +16,13 @@ CVS_OPT+= -Q
CVS_OPT+= -R
.endif
#
# Force NO_TIDY for the ports web pages, since it takes a long time to
# run tidy on these huge HTML files, and the files are valid HTML when
# generated by portindex, even without tidy.
#
NO_TIDY= YES
#
# This hack is allows to build www/ tree for case when ports/ located
# in other repository, for example Repository of Translation Project
@ -63,6 +70,9 @@ packages.exists:
Makefile.gen: index.sgml .NOTMAIN
${ECHO_CMD} DOCS= *.sgml > Makefile.gen
.if defined(NO_TIDY)
${ECHO_CMD} NO_TIDY=${NO_TIDY} >> Makefile.gen
.endif
index.sgml: ${INDEX} categories packages.exists portindex ports.inc .NOTMAIN
${RM} -f *.sgml