diff options
author | asami <asami@FreeBSD.org> | 1996-12-18 07:14:37 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-12-18 07:14:37 +0000 |
commit | b07e62fcb2ca58cf3d26cfdd21909e8ef8ec9a54 (patch) | |
tree | 76d82bab98c95338965cbae097797a4c1dd9e5b1 /share/doc/Makefile | |
parent | bed6404e9de7116280af80ea084a0f1673948049 (diff) | |
download | FreeBSD-src-b07e62fcb2ca58cf3d26cfdd21909e8ef8ec9a54.zip FreeBSD-src-b07e62fcb2ca58cf3d26cfdd21909e8ef8ec9a54.tar.gz |
Add support for NLS document building.
Here's the logic (mostly suggested by John Fieber):
@ If ALLLANG is defined, descend to all language-specific subdirs too.
@ If ALLLANG is not defined, but LANG is defined and a subdirectory with
that name exists, descend to that directory too.
@ In either case, the default subdirectories are always traversed.
Right now there's only one subdirectory (ja_JP.EUC) with one document
(handbook). Note these changes won't do anything if you don't have ALLLANG
defined or LANG set to ja_JP.EUC.
The make world for releases is expected to define ALLLANG, so all language-
specific documentation can be built (and be put in appropriate *dists).
This should be in 2.2.
Diffstat (limited to 'share/doc/Makefile')
-rw-r--r-- | share/doc/Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/share/doc/Makefile b/share/doc/Makefile index 015e07e..9d3d540 100644 --- a/share/doc/Makefile +++ b/share/doc/Makefile @@ -1,8 +1,24 @@ # From: @(#)Makefile 8.1 (Berkeley) 6/5/93 -# $Id: Makefile,v 1.8 1996/09/08 20:14:33 jfieber Exp $ +# $Id: Makefile,v 1.9 1996/09/08 21:24:15 jfieber Exp $ SUBDIR= FAQ handbook psd smm usd papers +# List of all language-specific subdirs. +LANGSUBDIR= ja_JP.EUC + +# If ALLLANG is defined, descend to all language-specific subdirs too. +# If ALLLANG is not defined, but LANG is defined and a subdirectory with +# that name exists, descend to that directory too. +# In either case, the default subdirectories are always traversed. + +.if defined(ALLLANG) +SUBDIR+= ${LANGSUBDIR} +.elif defined(LANG) +.if exists(${.CURDIR}/${LANG}) +SUBDIR+= ${LANG} +.endif +.endif + # Default output formats are ascii for troff documents, and # ascii and html for sgml documents. # To specify generate postscript versions of troff documents, use: |