summaryrefslogtreecommitdiffstats
path: root/bin/csh/Makefile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-07-02 12:37:09 +0000
committerru <ru@FreeBSD.org>2002-07-02 12:37:09 +0000
commit5179f05e3398169a25ab709a7f6ba906212bfd68 (patch)
tree91ad217324f8e79373a55d46b03690c4339c7ea5 /bin/csh/Makefile
parent038386078dfe384615c466ae7a32b271e5e0751f (diff)
downloadFreeBSD-src-5179f05e3398169a25ab709a7f6ba906212bfd68.zip
FreeBSD-src-5179f05e3398169a25ab709a7f6ba906212bfd68.tar.gz
Reimplemented bsd.nls.mk using bsd.files.mk and bsd.links.mk.
Provided the (previously missing) dependency on source files for intermediate .msg files. Provided the default for NLSSRCDIR (defaults to .CURDIR). Slightly changed the API: NLS should now list plain locale names, without the .msg suffix. When included from bsd.prog.mk, NLSNAME defaults to PROG.
Diffstat (limited to 'bin/csh/Makefile')
-rw-r--r--bin/csh/Makefile29
1 files changed, 28 insertions, 1 deletions
diff --git a/bin/csh/Makefile b/bin/csh/Makefile
index 4bc79fd..ccbdb93 100644
--- a/bin/csh/Makefile
+++ b/bin/csh/Makefile
@@ -10,7 +10,6 @@ TCSHDIR= ${.CURDIR}/../../contrib/tcsh
.PATH: ${TCSHDIR}
PROG= csh
-SUBDIR= nls
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
WARNS= 0
@@ -46,6 +45,34 @@ CLEANFILES= ${GENHDRS} gethost csh.1
FILESDIR= ${SHAREDIR}/examples/tcsh
FILES= complete.tcsh csh-mode.el
+CATALOGS= et:et_EE.ISO8859-15 \
+ finnish:fi_FI.ISO8859-1 \
+ french:fr_FR.ISO8859-1 \
+ german:de_DE.ISO8859-1 \
+ greek:el_GR.ISO8859-7 \
+ italian:it_IT.ISO8859-1 \
+ ja:ja_JP.eucJP \
+ russian:ru_RU.KOI8-R \
+ spanish:es_ES.ISO8859-1 \
+ ukrainian:uk_UA.KOI8-U
+
+NLSLINKS_fi_FI.ISO8859-1= fi_FI.ISO8859-15
+NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \
+ fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 \
+ fr_CH.ISO8859-15 fr_FR.ISO8859-15
+NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \
+ de_CH.ISO8859-15 de_DE.ISO8859-15
+NLSLINKS_it_IT.ISO8859-1= it_CH.ISO8859-1 it_CH.ISO8859-15 it_IT.ISO8859-15
+NLSLINKS_es_ES.ISO8859-1= es_ES.ISO8859-15
+
+NLSNAME= tcsh
+
+.for catalog in ${CATALOGS}
+NLS+= ${catalog:C/.*://}
+NLSSRCDIR_${catalog:C/.*://}= ${TCSHDIR}/nls/${catalog:C/:.*//}
+NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo set[0-9]*
+.endfor
+
csh.1: tcsh.man
ln -sf ${.ALLSRC} ${.TARGET}
OpenPOWER on IntegriCloud