diff options
author | Simon L. B. Nielsen <simon@FreeBSD.org> | 2006-07-16 11:22:05 +0000 |
---|---|---|
committer | Simon L. B. Nielsen <simon@FreeBSD.org> | 2006-07-16 11:22:05 +0000 |
commit | be320ab292eb974740ce9e73aad626137a4171e4 (patch) | |
tree | d51b7808f56ed7bf201256320f05df7c1dc0ad16 /ru | |
parent | 6d843e28085b38e9f7b641641e2cb8272719a055 (diff) | |
download | doc-be320ab292eb974740ce9e73aad626137a4171e4.tar.gz doc-be320ab292eb974740ce9e73aad626137a4171e4.zip |
MFen 1.37+1.38:
- Make it possible to override the complete path to the INDEX file
used for the ports/ part of the website, by setting the
PINDEX_OVERRIDE variable. (Already merged in www/ja/ports/Makefile.)
- 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.
Notes
Notes:
svn path=/www/; revision=28303
Diffstat (limited to 'ru')
-rw-r--r-- | ru/ports/Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/ru/ports/Makefile b/ru/ports/Makefile index 56e3a267c7..bb98855171 100644 --- a/ru/ports/Makefile +++ b/ru/ports/Makefile @@ -1,10 +1,10 @@ # # The FreeBSD Russian Documentation Project # -# $FreeBSD: www/ru/ports/Makefile,v 1.8 2004/11/13 12:23:19 ceri Exp $ +# $FreeBSD: www/ru/ports/Makefile,v 1.9 2005/12/04 11:50:51 pav Exp $ # $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.9 2004/03/23 21:09:19 phantom Exp $ # -# Original revision: 1.36 +# Original revision: 1.38 # .if exists(../Makefile.conf) @@ -19,7 +19,17 @@ FETCH_OPT?= -am -.if defined(NOPORTSNET) +# +# 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 + +.if defined(PINDEX_OVERRIDE) +${INDEX}: ${PINDEX_OVERRIDE} + ${CP} ${PINDEX_OVERRIDE} ${INDEX} +.elif defined(NOPORTSNET) ${INDEX}: $${PORTSBASE}/${PINDEX} ${CP} ${PORTSBASE}/${PINDEX} ${INDEX} .else @@ -60,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 |