Index: head/en_US.ISO8859-1/books/fdp-primer/the-website/chapter.xml =================================================================== --- head/en_US.ISO8859-1/books/fdp-primer/the-website/chapter.xml (revision 47109) +++ head/en_US.ISO8859-1/books/fdp-primer/the-website/chapter.xml (revision 47110) @@ -1,147 +1,144 @@ The Website Build the Web Pages Having obtained the documentation and web site source files, the web site can be built. In this example, the build directory is ~/doc and all the required files are already in place. The web site is built from the en_US.ISO8859-1/htdocs subdirectory of the document tree directory, ~/doc in this example. Change to the build directory and start the build by executing make all. &prompt.user; cd ~/doc/en_US.ISO8859-1/htdocs &prompt.user; make all The web site build uses the INDEX from the Ports Collection and may fail if that file or /usr/ports is not present. The simplest approach is to install the Ports Collection. Install the Web Pages Run make install, setting DESTDIR to the target directory for the web site files. The files will be installed in $DESTDIR/data, which is expected to be the web server's document root. This installation is run as the root user because the permissions on the web server directory will not allow files to be installed by an unprivileged user. In this example, the web site files were built by user jru in their home directory, /usr/home/jru/doc. &prompt.root; cd /home/jru/doc/en_US.ISO8859-1/htdocs &prompt.root; env DESTDIR=/usr/local/www make install The install process will not delete any old or outdated files that existed previously in the same directory. If a new copy of the site is built and installed every day, this command will find and delete all files that have not been updated in three days. &prompt.root; find /usr/local/www -ctime 3 -delete Environment Variables ENGLISH_ONLY - If set and not empty, only the English documents will - be built or installed. All translations will be ignored. - E.g.: + When set, only the English documents will + be built or installed. All translations will be ignored: &prompt.root; make ENGLISH_ONLY=YES all install To unset the variable and build all pages, including translations, set ENGLISH_ONLY to an empty value: &prompt.root; make ENGLISH_ONLY="" all install clean WEB_ONLY - If set and not empty, only the HTML + When set, only the HTML pages from the en_US.ISO8859-1/htdocs directory will be built or installed. All other directories within en_US.ISO8859-1 - (Handbook, FAQ, Tutorials) will be ignored. E.g.: + (Handbook, FAQ, Tutorials) will be ignored: &prompt.root; make WEB_ONLY=YES all install WEB_LANG If set, build or install only for the languages - specified by this variable inside the ~/doc - directory. All other languages except English will be - ignored. E.g.: + specified: &prompt.root; make WEB_LANG="el_GR.ISO8859-7 es_ES.ISO8859-1 hu_HU.ISO8859-2 nl_NL.ISO8859-1" all install WEB_ONLY, WEB_LANG, and ENGLISH_ONLY are &man.make.1; variables and can be set in /etc/make.conf, Makefile.inc, as environment variables on the command line, or in dot files.