Comment change.
[bpt/emacs.git] / leim / Makefile.in
CommitLineData
24b31c88
KH
1# Makefile for leim subdirectory in GNU Emacs.
2# Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
3# Licensed to the Free Software Foundation.
4
5# This file is part of GNU Emacs.
6
7# GNU Emacs is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2, or (at your option)
10# any later version.
11#
12# GNU Emacs is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with GNU Emacs; see the file COPYING. If not, write to the
19# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20# Boston, MA 02111-1307, USA.
21
22# Avoid trouble on systems where the `SHELL' variable might be
23# inherited from the environment.
24SHELL = /bin/sh
25
26# Here are the things that we expect ../configure to edit.
27version=@version@
28prefix=@prefix@
29datadir=@datadir@
24b31c88
KH
30srcdir=@srcdir@
31
eb7440a5 32# Where to install LEIM files.
24b31c88
KH
33INSTALLDIR=${datadir}/emacs/${version}/leim
34
eb7440a5
KH
35# On Xenix and the IBM RS6000, double-dot gets screwed up.
36dot = .
37dotdot = ${dot}${dot}
24b31c88 38
eb7440a5
KH
39# Which Emacs to use to convert TIT files to Emacs Lisp files,
40# byte-compile Emacs Lisp files, and generate the file leim-list.el.
41EMACS = ${dot}${dot}/src/emacs
24b31c88 42
eb7440a5
KH
43buildlisppath=${srcdir}/${dot}${dot}/lisp
44
45# How to run Emacs. This forces Emacs to use new Emacs Lisp libraries.
46RUN-EMACS = EMACSLOADPATH=${buildlisppath}:${buildlisppath}/international \
47 ${EMACS}
48
49# Subdirectories to be made if ${srcdir} is different from the current
50# directory.
24b31c88
KH
51SUBDIRS=quail skk
52
eb7440a5 53# Files generated from TIT dictionaries for Chinese GB character set.
72388e59 54TIT-GB=\
eb7440a5
KH
55 quail/CTLau.el \
56 quail/CCDOSPY.el \
57 quail/Punct.el \
58 quail/PY.el \
59 quail/QJ.el \
60 quail/SW.el \
61 quail/TONEPY.el \
62 quail/ZIRANMA.el
63
64# Files generated from TIT dictionaries for Chinese BIG5 character set.
72388e59 65TIT-BIG5=\
eb7440a5
KH
66 quail/4Corner.el \
67 quail/ARRAY30.el \
68 quail/CTLauB.el \
69 quail/ECDICT.el \
70 quail/ETZY.el \
71 quail/Punct-b5.el \
72 quail/PY-b5.el \
73 quail/QJ-b5.el \
74 quail/ZOZY.el
72388e59
KH
75
76CHINESE-GB=${TIT-GB} \
eb7440a5 77 quail/py-punct.el
72388e59
KH
78
79CHINESE-BIG5=${TIT-BIG5} \
eb7440a5 80 quail/quick-b5.el quail/tsangchi-b5.el quail/py-punct-b5.el
72388e59 81
eb7440a5 82CHINESE-CNS=quail/quick-cns.el quail/tsangchi-cns.el
24b31c88 83
eb7440a5 84JAPANESE=quail/japanese.el skk/skkdic.el
24b31c88 85
eb7440a5
KH
86KOREAN= quail/hangul.el \
87 quail/hangul3.el \
88 quail/hanja.el \
89 quail/hanja-jis.el \
90 quail/symbol-ksc.el
24b31c88 91
eb7440a5 92THAI=quail/thai.el
24b31c88 93
eb7440a5 94VIETNAMESE=quail/viqr.el
24b31c88 95
eb7440a5 96LAO=quail/lao.el quail/lrt.el
24b31c88 97
eb7440a5 98INDIAN=quail/devanagari.el
24b31c88 99
eb7440a5 100TIBETAN=quail/tibetan.el
24b31c88 101
eb7440a5 102LATIN=quail/latin-pre.el quail/latin-post.el
24b31c88 103
eb7440a5 104GREEK=quail/greek.el
24b31c88 105
eb7440a5 106RUSSIAN=quail/cyrillic.el
24b31c88 107
eb7440a5 108MISC=quail/ethiopic.el quail/ipa.el
24b31c88
KH
109
110CHINESE=${CHINESE-GB} ${CHINESE-BIG5} ${CHINESE-CNS}
111EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN}
112ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN}
113EUROPEAN=${LATIN} ${GREEK} ${RUSSIAN}
114WORLD=${ASIA} ${EUROPEAN} ${MISC}
115
eb7440a5 116all: ${SUBDIRS} ${WORLD} stamp-bytecomp leim-list.el
24b31c88 117
eb7440a5
KH
118# To ensure that we can run Emacs. This target is ignored (never
119# being hit) if a user changes default value of EMACS.
120${dot}${dot}/src/emacs:
121 cd ../src; ${MAKE} ${MFLAGS} emacs
24b31c88 122
eb7440a5
KH
123${SUBDIRS}:
124 mkdir $@
125 touch stamp-subdir
24b31c88 126
eb7440a5
KH
127# Rule to generate quail/*.el from CXTERM-DIC/*.tit.
128${TIT-GB} ${TIT-BIG5}: ${EMACS}
129 ${RUN-EMACS} -batch -l titdic-cnv --eval '(batch-titdic-convert t)'\
72388e59 130 -dir quail ${srcdir}/CXTERM-DIC
24b31c88 131
eb7440a5
KH
132# Emacs Lisp source files not generated from TIT dictionaries are
133# distributed as is. So, we just make symbolic links to them if
134# ${srcdir} is different form the current directory.
135%.el:
4382ff37 136 @LN_S@ ${srcdir}/$@ $@
24b31c88 137
eb7440a5
KH
138stamp-bytecomp: ${WORLD} ${EMACS}
139 ${RUN-EMACS} -batch --eval '(byte-recompile-directory "quail" 0)'
140 if test ! -f skk/skkdic.elc; then \
141 if test -f ${srcdir}/skk/skkdic.elc; then \
4382ff37 142 @LN_S@ ${srcdir}/skk/skkdic.elc skk; \
eb7440a5
KH
143 else \
144 ${RUN-EMACS} -batch -l skkdic-cnv \
145 --eval '(byte-recompile-directory "skk" 0)'; \
146 fi \
147 fi
148 touch stamp-bytecomp
149
150leim-list.el: ${EMACS} ${SUBDIRS} ${WORLD}
151 ${RUN-EMACS} -batch --eval "(update-leim-list-file \".\")"
24b31c88
KH
152
153# install -- all languages supported by LEIM
154# install-asia -- all Asian languages
155# install-eastasia -- all Each Asian languages
156# install-chinese -- all Chinese Languages
157# install-chinese-gb -- Chinese (GB)
158# install-chinese-big5 -- Chinese (BIG5)
159# install-chinese-cns -- Chinese (CNS)
160# install-japanese -- Japanese
161# install-korean -- Korean (hangul and hanja)
162# install-thai -- Thai
163# install-vietnamese -- Vietnamese
164# install-lao -- Lao
165# install-indian -- Indian (Devanagari script)
166# install-tibetan -- Tibetan (Devanagari)
167# install-european -- all European languages
168# install-latin -- all Latin scripts
169# install-greek -- Greek
170# install-russian -- Russian (cyrillic)
171# install-misc -- Ethiopic and IPA
172
173install: all
eb7440a5
KH
174 tar cfh - ${SUBDIRS} | (cd ${INSTALLDIR}; tar xvf -)
175 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 176
72388e59 177install-asia: all
eb7440a5
KH
178 ELC=`echo ${ASIA} | sed 's/\.el/.elc/g'`; \
179 tar cfh - $$ELC ${ASIA} | (cd ${INSTALLDIR}; tar xvf -)
180 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 181
72388e59 182install-eastasia: all
eb7440a5
KH
183 ELC=`echo ${EASTASIA} | sed 's/\.el/.elc/g'`; \
184 tar cfh - $$ELC ${EASTASIA} | (cd ${INSTALLDIR}; tar xvf -)
185 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 186
72388e59 187install-chinese: all ${CHINESE}
eb7440a5
KH
188 ELC=`echo ${CHINESE} | sed 's/\.el/.elc/g'`; \
189 tar cfh - $$ELC ${CHINESE} | (cd ${INSTALLDIR}; tar xvf -)
190 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 191
72388e59 192install-chinese-gb: all ${CHINESE-GB}
eb7440a5
KH
193 ELC=`echo ${CHINESE-GB} | sed 's/\.el/.elc/g'`; \
194 tar cfh - $$ELC ${CHINESE-GB} | (cd ${INSTALLDIR}; tar xvf -)
195 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 196
72388e59 197install-chinese-big5: all ${CHINESE-BIG5}
eb7440a5
KH
198 ELC=`echo ${CHINESE-BIG5} | sed 's/\.el/.elc/g'`; \
199 tar cfh - $$ELC ${CHINESE-BIG5} | (cd ${INSTALLDIR}; tar xvf -)
200 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 201
72388e59 202install-chinese-cns: all ${CHINESE-CNS}
eb7440a5
KH
203 ELC=`echo ${CHINESE-CNS} | sed 's/\.el/.elc/g'`; \
204 tar cfh - $$ELC ${CHINESE-CNS} | (cd ${INSTALLDIR}; tar xvf -)
205 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 206
72388e59 207install-japanese: all ${JAPANESE}
eb7440a5
KH
208 ELC=`echo ${JAPANESE} | sed 's/\.el/.elc/g'`; \
209 tar cfh - $$ELC ${JAPANESE} | (cd ${INSTALLDIR}; tar xvf -)
210 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 211
72388e59 212install-korean: all ${KOREAN}
eb7440a5
KH
213 ELC=`echo ${KOREAN} | sed 's/\.el/.elc/g'`; \
214 tar cfh - $$ELC ${KOREAN} | (cd ${INSTALLDIR}; tar xvf -)
215 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 216
72388e59 217install-thai: all ${THAI}
eb7440a5
KH
218 ELC=`echo ${THAI} | sed 's/\.el/.elc/g'`; \
219 tar cfh - $$ELC ${THAI} | (cd ${INSTALLDIR}; tar xvf -)
220 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 221
72388e59 222install-vietnamese: all ${VIETNAMESE}
eb7440a5
KH
223 ELC=`echo ${VIETNAMESE} | sed 's/\.el/.elc/g'`; \
224 tar cfh - $$ELC ${VIETNAMESE} | (cd ${INSTALLDIR}; tar xvf -)
225 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 226
72388e59 227install-lao: all ${LAO}
eb7440a5
KH
228 ELC=`echo ${LAO} | sed 's/\.el/.elc/g'`; \
229 tar cfh - $$ELC ${LAO} | (cd ${INSTALLDIR}; tar xvf -)
230 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 231
72388e59 232install-indian: all ${INDIAN}
eb7440a5
KH
233 ELC=`echo ${INDIAN} | sed 's/\.el/.elc/g'`; \
234 tar cfh - $$ELC ${INDIAN} | (cd ${INSTALLDIR}; tar xvf -)
235 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 236
72388e59 237install-tibetan: all ${TIBETAN}
eb7440a5
KH
238 ELC=`echo ${TIBETAN} | sed 's/\.el/.elc/g'`; \
239 tar cfh - $$ELC ${TIBETAN} | (cd ${INSTALLDIR}; tar xvf -)
240 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 241
72388e59 242install-european: all ${EUROPEAN}
eb7440a5
KH
243 ELC=`echo ${EUROPEAN} | sed 's/\.el/.elc/g'`; \
244 tar cfh - $$ELC ${EUROPEAN} | (cd ${INSTALLDIR}; tar xvf -)
245 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 246
72388e59 247install-latin: all ${LATIN}
eb7440a5
KH
248 ELC=`echo ${LATIN} | sed 's/\.el/.elc/g'`; \
249 tar cfh - $$ELC ${LATIN} | (cd ${INSTALLDIR}; tar xvf -)
250 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 251
72388e59 252install-greek: all ${GREEK}
eb7440a5
KH
253 ELC=`echo ${GREEK} | sed 's/\.el/.elc/g'`; \
254 tar cfh - $$ELC ${GREEK} | (cd ${INSTALLDIR}; tar xvf -)
255 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 256
72388e59 257install-russian: all ${RUSSIAN}
eb7440a5
KH
258 ELC=`echo ${RUSSIAN} | sed 's/\.el/.elc/g'`; \
259 tar cfh - $$ELC ${RUSSIAN} | (cd ${INSTALLDIR}; tar xvf -)
260 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
24b31c88 261
72388e59 262install-misc: all ${MISC}
eb7440a5
KH
263 ELC=`echo ${MISC} | sed 's/\.el/.elc/g'`; \
264 tar cfh - $$ELC ${MISC} | (cd ${INSTALLDIR}; tar xvf -)
265 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
72388e59
KH
266
267mostlyclean:
eb7440a5 268 rm -f quail/*.elc stamp-bytecomp
72388e59 269
4382ff37
RS
270# This used to use test -L, but that is not portable.
271# If Makefile.in doesn't exist in the build directory
272# then it isn't the source directory, so we should delete the file.
72388e59 273clean:
eb7440a5 274 rm -rf ${TIT-GB} ${TIT-BIG5} quail/*.elc stamp-bytecomp leim-list.el
4382ff37
RS
275# If this is not a dot-srcdir build, then remove the link made to skkdic.elc.
276 if test ! -f Makefile.in; then \
277 rm -f skk/skkdic.elc; \
278 else; true; fi
72388e59
KH
279
280distclean maintainer-clean: clean
eb7440a5 281 if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi
72388e59 282 rm -f Makefile