Mercurial > emacs
annotate leim-Makefile.in @ 31774:f8d2403d385b
(Fmessage_or_box): Doc fix.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 20 Sep 2000 16:23:54 +0000 |
parents | 2d2c0153a04d |
children |
rev | line source |
---|---|
27557 | 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. | |
24 SHELL = /bin/sh | |
25 | |
26 # Here are the things that we expect ../configure to edit. | |
27 version=@version@ | |
28 prefix=@prefix@ | |
29 datadir=@datadir@ | |
30 srcdir=@srcdir@ | |
31 | |
32 # Where to install LEIM files. | |
33 INSTALLDIR=${datadir}/emacs/${version}/leim | |
34 | |
35 # On Xenix and the IBM RS6000, double-dot gets screwed up. | |
36 dot = . | |
37 | |
38 # Which Emacs to use to convert TIT files to Emacs Lisp files, | |
39 # byte-compile Emacs Lisp files, and generate the file leim-list.el. | |
40 BUILT-EMACS = ${dot}${dot}/src/emacs | |
41 | |
42 buildlisppath=${srcdir}/${dot}${dot}/lisp | |
43 | |
44 # How to run Emacs. | |
45 RUN-EMACS = ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte | |
46 | |
47 # Subdirectories to be made if ${srcdir} is different from the current | |
48 # directory. | |
49 SUBDIRS=quail | |
50 | |
51 # Files generated from TIT dictionaries for Chinese GB character set. | |
52 TIT-GB=\ | |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
53 quail/CTLau.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
54 quail/CCDOSPY.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
55 quail/Punct.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
56 quail/PY.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
57 quail/QJ.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
58 quail/SW.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
59 quail/TONEPY.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
60 quail/ZIRANMA.elc |
27557 | 61 |
62 # Files generated from TIT dictionaries for Chinese BIG5 character set. | |
63 TIT-BIG5=\ | |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
64 quail/4Corner.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
65 quail/ARRAY30.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
66 quail/CTLauB.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
67 quail/ECDICT.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
68 quail/ETZY.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
69 quail/Punct-b5.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
70 quail/PY-b5.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
71 quail/QJ-b5.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
72 quail/ZOZY.elc |
27557 | 73 |
74 CHINESE-TIT=${TIT-GB} ${TIT-BIG5} | |
75 | |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
76 NON-TIT-GB=${srcdir}/quail/py-punct.elc |
27557 | 77 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
78 NON-TIT-BIG5=${srcdir}/quail/quick-b5.elc ${srcdir}/quail/tsang-b5.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
79 ${srcdir}/quail/pypunct-b5.elc |
27557 | 80 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
81 NON-TIT-CNS=${srcdir}/quail/quick-cns.elc ${srcdir}/quail/tsang-cns.elc |
27557 | 82 |
83 CHINESE-NON-TIT=${NON-TIT-GB} ${NON-TIT-BIG5} ${NON-TIT-CNS} | |
84 | |
85 CHINESE-GB=${TIT-GB} ${NON-TIT-GB} | |
86 | |
87 CHINESE-BIG5=${TIT-BIG5} ${NON-TIT-BIG5} | |
88 | |
89 CHINESE-CNS=${NON-TIT-CNS} | |
90 | |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
91 JAPANESE=${srcdir}/quail/japanese.elc ${srcdir}/ja-dic/ja-dic.elc |
27557 | 92 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
93 KOREAN= ${srcdir}/quail/hangul.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
94 ${srcdir}/quail/hangul3.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
95 ${srcdir}/quail/hanja.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
96 ${srcdir}/quail/hanja-jis.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
97 ${srcdir}/quail/symbol-ksc.elc |
27557 | 98 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
99 THAI=${srcdir}/quail/thai.elc |
27557 | 100 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
101 VIETNAMESE=${srcdir}/quail/viqr.elc |
27557 | 102 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
103 LAO=${srcdir}/quail/lao.elc ${srcdir}/quail/lrt.elc |
27557 | 104 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
105 INDIAN=${srcdir}/quail/devanagari.elc |
27557 | 106 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
107 TIBETAN=${srcdir}/quail/tibetan.elc |
27557 | 108 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
109 LATIN=${srcdir}/quail/latin-pre.elc ${srcdir}/quail/latin-post.elc |
27557 | 110 |
111 SLAVIC= \ | |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
112 ${srcdir}/quail/czech.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
113 ${srcdir}/quail/slovak.elc |
27557 | 114 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
115 GREEK=${srcdir}/quail/greek.elc |
27557 | 116 |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
117 RUSSIAN=${srcdir}/quail/cyrillic.elc ${srcdir}/quail/cyril-jis.elc |
27557 | 118 |
119 MISC= \ | |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
120 ${srcdir}/quail/ethiopic.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
121 ${srcdir}/quail/ipa.elc \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
122 ${srcdir}/quail/hebrew.elc |
27557 | 123 |
124 CHINESE=${CHINESE-GB} ${CHINESE-BIG5} ${CHINESE-CNS} | |
125 EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN} | |
126 ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} ${TIBETAN} | |
127 EUROPEAN=${LATIN} ${SLAVIC} ${GREEK} ${RUSSIAN} | |
128 WORLD=${ASIA} ${EUROPEAN} ${MISC} | |
129 | |
130 TIT=${CHINESE-TIT} | |
131 NON-TIT=${CHINESE-NON-TIT} ${JAPANESE} ${KOREAN} ${EUROPEAN} ${MISC} | |
132 | |
133 all: ${BUILT-EMACS} ${SUBDIRS} ${TIT} leim-list.el | |
134 | |
135 # To ensure that we can run Emacs. This target is ignored (never | |
136 # being hit) if a user changes default value of EMACS. | |
137 ${dot}${dot}/src/emacs: | |
138 cd ../src; ${MAKE} ${MFLAGS} emacs | |
139 | |
140 ${SUBDIRS}: | |
141 mkdir $@ | |
142 touch stamp-subdir | |
143 | |
144 # Rule to generate quail/*.el from CXTERM-DIC/*.tit. | |
145 ${TIT}: | |
146 if [ -d quail ]; then true; else make quail; fi | |
147 ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \ | |
148 --eval '(batch-titdic-convert t)' -dir quail ${srcdir}/CXTERM-DIC | |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
149 EL=`echo ${TIT} | sed 's/\.elc/\.el/g'`; \ |
27557 | 150 ${RUN-EMACS} -l ${buildlisppath}/international/quail \ |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
151 -f batch-byte-compile $$EL |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
152 |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
153 .el.elc: |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
154 ${RUN-EMACS} -f batch-byte-compile $< |
27557 | 155 |
156 leim-list.el: ${SUBDIRS} ${WORLD} | |
157 if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \ | |
158 ${RUN-EMACS} -l ${buildlisppath}/international/quail \ | |
159 --eval "(update-leim-list-file \".\")" ; \ | |
160 else \ | |
161 ${RUN-EMACS} -l ${buildlisppath}/international/quail \ | |
162 --eval "(update-leim-list-file \".\" \"${srcdir}\")" ; \ | |
163 fi | |
164 | |
165 install: all | |
166 if [ x`(cd ${INSTALLDIR} && /bin/pwd)` != x`(/bin/pwd)` ] ; then \ | |
167 rm -rf ${INSTALLDIR}/leim-list.el; \ | |
31161
8986e62b3e17
Rename skkdic to ja-dic throughout the file.
Kenichi Handa <handa@m17n.org>
parents:
27557
diff
changeset
|
168 rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/ja-dic ; \ |
27557 | 169 echo "Copying leim files to ${INSTALLDIR} ..." ; \ |
170 if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \ | |
31161
8986e62b3e17
Rename skkdic to ja-dic throughout the file.
Kenichi Handa <handa@m17n.org>
parents:
27557
diff
changeset
|
171 tar -cf - leim-list.el quail ja-dic \ |
27557 | 172 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\ |
173 else \ | |
174 tar -cf - leim-list.el quail \ | |
175 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\ | |
176 cd ${srcdir}; \ | |
31161
8986e62b3e17
Rename skkdic to ja-dic throughout the file.
Kenichi Handa <handa@m17n.org>
parents:
27557
diff
changeset
|
177 tar -cf - quail/* ja-dic \ |
27557 | 178 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\ |
179 fi; \ | |
180 else true; fi | |
181 -chmod -R a+r ${INSTALLDIR} | |
182 | |
183 clean mostlyclean: | |
31772
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
184 EL=`echo ${TIT} | sed 's/\.elc/.el/g'`; \ |
2d2c0153a04d
(TIT-GB, TIT-BIG5, NON-TIT-GB, NON-TIT-BIG5)
Kenichi Handa <handa@m17n.org>
parents:
31161
diff
changeset
|
185 rm -f ${TIT} $$EL leim-list.el |
27557 | 186 |
187 distclean maintainer-clean: | |
188 if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi | |
189 rm -f Makefile |