Handle the new Makefile infrastructure in the doc/ repository.

Set ALLLANG to install all the languages, otherwise set DOC_LANG
to just the languages (and encodings) you want to install.

Default to building the html-split (lots of small HTML files, with
links to go between them), html (one big honking HTML file), and plain
text versions of the documentation.  Does not compress any of the docs
prior to doing the installation.

Testing and feedback:   Jack O'Neill <jack@germanium.xtalwind.net>,
Cockups and typos:      nik
This commit is contained in:
Nik Clayton 1999-08-26 19:50:14 +00:00
parent c6f7f343c9
commit 5916b53ae2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50425

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.502 1999/08/05 01:28:00 jkh Exp $
# $Id: Makefile,v 1.503 1999/08/05 08:37:31 jkh Exp $
#
# make release CHROOTDIR=/some/dir BUILDNAME=somename [ RELEASETAG=tag ]
#
@ -233,7 +233,7 @@ rerelease release:
.if defined(ALLLANG)
echo "export ALLLANG=${ALLLANG}" >> ${CHROOTDIR}/mk
.else
echo "export DOC_LANG=en" >> ${CHROOTDIR}/mk
echo "export DOC_LANG=en_US.ISO_8859-1" >> ${CHROOTDIR}/mk
.endif
.if defined(NOSRC)
echo "export NOSRC=${NOSRC}" >> ${CHROOTDIR}/mk
@ -594,7 +594,7 @@ doc.1:
@for i in ${DOCPORTS}; do \
cd /usr/ports/$$i && make all install clean JADETEX=no FORCE_PKG_REGISTER=yes; \
done
@cd /usr/doc && make all distribute DISTDIR=${RD}/trees
@cd /usr/doc && make all install 'FORMATS=html html-split txt' INSTALL_COMPRESSED='' DOCDIR=${RD}/trees/bin/usr/share/doc
touch doc.1
# Various "subroutine" and other supporting targets.