same naming scheme as that used by the doc/ repo.
Update docs.sgml to point to the documentation in this canonical location.
Update the FAQ/ and handbook/ directories to use symlinks to point to
the real documentation under doc/en_US.ISO_8859-1/. This means that local
testing of the site (and mirrors) will still work as expected using the
legacy URLs. Mirrors that expect to see a lot of traffic are advised to
alter their web server configuration so that $WEBROOT/FAQ and $WEBROOT/handbook
are redirected to $WEBROOT/doc/en_US.ISO_8859-1/books/{faq,handbook},
instead of relying on the symlinks.
Discussed on: doc, www
26 lines
764 B
Makefile
26 lines
764 B
Makefile
#
|
|
# $FreeBSD: www/en/FAQ/Makefile,v 1.4 1999/09/15 20:37:03 wosch Exp $
|
|
#
|
|
# Build the FreeBSD FAQ *outside* of the www tree, and install it
|
|
# in to the right place as necessary.
|
|
|
|
.if exists(../Makefile.conf)
|
|
.include "../Makefile.conf"
|
|
.endif
|
|
.if exists(../Makefile.inc)
|
|
.include "../Makefile.inc"
|
|
.endif
|
|
|
|
# At build time, we have to link to the doc/ directory at the same level
|
|
# as the www/ tree.
|
|
all:
|
|
ln -fs ${.CURDIR}/../../../doc/en_US.ISO_8859-1/books/faq/* .
|
|
|
|
# At install time the www/en/doc/ directory has been populated, so we can
|
|
# link in to there instead.
|
|
install:
|
|
[ -d ${DOCINSTALLDIR} ] || mkdir ${DOCINSTALLDIR}
|
|
(cd ${DOCINSTALLDIR} && ln -fs ../doc/en_US.ISO_8859-1/books/faq/* ${DOCINSTALLDIR})
|
|
|
|
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
|
|