18673
|
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 lispdir=@lispdir@
|
|
31 srcdir=@srcdir@
|
|
32
|
|
33 INSTALLDIR=${datadir}/emacs/${version}/leim
|
|
34
|
|
35 EMACS=../src/emacs
|
|
36
|
|
37 TAR=tar
|
|
38 CP=cp
|
|
39
|
|
40 SUBDIRS=quail skk
|
|
41
|
|
42 CHINESE-GB=\
|
|
43 quail/tit/CTLau.elc \
|
|
44 quail/tit/CCDOSPY.elc \
|
|
45 quail/tit/Punct.elc \
|
|
46 quail/tit/PY.elc \
|
|
47 quail/tit/QJ.elc \
|
|
48 quail/tit/SW.elc \
|
|
49 quail/tit/TONEPY.elc \
|
|
50 quail/tit/ZIRANMA.elc
|
|
51 CHINESE-BIG5=\
|
|
52 quail/tit/4Corner.elc \
|
|
53 quail/tit/ARRAY30.elc \
|
|
54 quail/tit/CTLauB.elc \
|
|
55 quail/tit/ECDICT.elc \
|
|
56 quail/tit/ETZY.elc \
|
|
57 quail/tit/Punct-b5.elc \
|
|
58 quail/tit/PY-b5.elc \
|
|
59 quail/tit/QJ-b5.elc \
|
|
60 quail/tit/ZOZY.elc \
|
|
61 quail/quick-b5.elc \
|
|
62 quail/tsangchi-b5.elc
|
|
63 CHINESE-CNS=\
|
|
64 quail/quick-cns.elc \
|
|
65 quail/tsangchi-cns.elc
|
|
66
|
|
67 JAPANESE=quail/japanese.elc skk/skkdic.elc
|
|
68
|
|
69 KOREAN=\
|
|
70 quail/hangul.elc \
|
|
71 quail/hangul3.elc \
|
|
72 quail/hanja.elc \
|
|
73 quail/hanja-jis.elc \
|
|
74 quail/symbol-ksc.elc
|
|
75
|
|
76 THAI=quail/thai.elc
|
|
77
|
|
78 VIETNAMESE=quail/viqr.elc
|
|
79
|
|
80 LAO=quail/lao.elc quail/lrt.elc
|
|
81
|
|
82 INDIAN=quail/devanagari.elc
|
|
83
|
|
84 TIBETAN=quail/tibetan.elc
|
|
85
|
|
86 LATIN=quail/latin-pre.elc quail/latin-post.elc
|
|
87
|
|
88 GREEK=quail/greek.elc
|
|
89
|
|
90 RUSSIAN=quail/cyrillic.elc
|
|
91
|
|
92 MISC=quail/ethiopic.elc quail/ipa.elc
|
|
93
|
|
94 CHINESE=${CHINESE-GB} ${CHINESE-BIG5} ${CHINESE-CNS}
|
|
95 EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN}
|
|
96 ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN}
|
|
97 EUROPEAN=${LATIN} ${GREEK} ${RUSSIAN}
|
|
98 WORLD=${ASIA} ${EUROPEAN} ${MISC}
|
|
99
|
|
100 all: ${SUBDIRS} ${WORLD} leim-list.el
|
|
101
|
|
102 quail:
|
|
103 mkdir quail
|
|
104 ln -s . quail/tit
|
|
105 ln -s ${srcdir}/quail/*.el quail
|
|
106
|
|
107 skk:
|
|
108 mkdir skk
|
|
109 ln -s ${srcdir}/skk/* skk
|
|
110
|
|
111 quail/tit/%.el: ${srcdir}/CXTERM-DIC/%.tit
|
|
112 $(EMACS) -batch -l titdic-cnv -f batch-titdic-convert\
|
|
113 -dir quail `dirname $<`
|
|
114
|
|
115 quail/tit/%.elc: quail/tit/%.el
|
|
116 $(EMACS) -batch --eval '(byte-recompile-directory "quail" 0)'
|
|
117
|
|
118 quail/%.el:
|
|
119 for f in ${srcdir}/quail/*.el; do \
|
|
120 [ -f quail/`basename $$f` ] || (cd quail; ln -s $$f .); \
|
|
121 done
|
|
122
|
|
123 quail/%.elc: quail/%.el
|
|
124 $(EMACS) -batch --eval '(byte-recompile-directory "quail" 0)'
|
|
125
|
|
126 skk/%.el:
|
|
127 ln -s ${srcdir}/$@ $@
|
|
128
|
|
129 skk/%.elc: skk/%.el
|
|
130 $(EMACS) -batch -l skkdic-cnv -f batch-byte-compile $<
|
|
131
|
|
132 leim-list.el: ${WORLD}
|
|
133 $(EMACS) -batch --eval "(update-leim-list-file \".\")"
|
|
134
|
|
135 # install -- all languages supported by LEIM
|
|
136 # install-asia -- all Asian languages
|
|
137 # install-eastasia -- all Each Asian languages
|
|
138 # install-chinese -- all Chinese Languages
|
|
139 # install-chinese-gb -- Chinese (GB)
|
|
140 # install-chinese-big5 -- Chinese (BIG5)
|
|
141 # install-chinese-cns -- Chinese (CNS)
|
|
142 # install-japanese -- Japanese
|
|
143 # install-korean -- Korean (hangul and hanja)
|
|
144 # install-thai -- Thai
|
|
145 # install-vietnamese -- Vietnamese
|
|
146 # install-lao -- Lao
|
|
147 # install-indian -- Indian (Devanagari script)
|
|
148 # install-tibetan -- Tibetan (Devanagari)
|
|
149 # install-european -- all European languages
|
|
150 # install-latin -- all Latin scripts
|
|
151 # install-greek -- Greek
|
|
152 # install-russian -- Russian (cyrillic)
|
|
153 # install-misc -- Ethiopic and IPA
|
|
154
|
|
155 install: all
|
|
156 ELC=`echo ${WORLD} | sed 's,tit/,,g'`; \
|
|
157 EL=`echo $$ELC | sed 's/\.elc/.el/g'`; \
|
|
158 $(TAR) -cf - $$EL $$ELC | (cd ${INSTALLDIR}; $(TAR) -xvf -)
|
|
159 $(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
|
|
160
|
|
161 install-asia: ${ASIA}
|
|
162 ELSRC=`echo ${ASIA} | sed 's/\.elc/.el/g'`; \
|
|
163 $(TAR) -cf - $$ELSRC ${ASIA} | (cd ${INSTALLDIR}; $(TAR) -xvf -)
|
|
164 $(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
|
|
165
|
|
166 install-eastasia: ${EASTASIA}
|
|
167 ELSRC=`echo ${EASTASIA} | sed 's/\.elc/.el/g'`; \
|
|
168 $(TAR) -cf - $$ELSRC ${EASTASIA} | (cd ${INSTALLDIR}; $(TAR) -xvf -)
|
|
169 $(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
|
|
170
|
|
171 install-chinese: install-chinese-gb install-chinese-big5 install-chinese-cns
|
|
172
|
|
173 install-chinese-gb: ${CHINESE-GB}
|
|
174 ELSRC=`echo $^ | sed 's/\.elc/.el/g'`; \
|
|
175 $(CP) -fp $$ELSRC $^ ${INSTALLDIR}/quail
|
|
176 $(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
|
|
177
|
|
178 install-chinese-big5: ${CHINESE-BIG5}
|
|
179 ELSRC=`echo $^ | sed 's/\.elc/.el/g'`; \
|
|
180 $(CP) -fp $$ELSRC $^ ${INSTALLDIR}/quail
|
|
181 $(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
|
|
182
|
|
183 install-chinese-cns: ${CHINESE-CNS}
|
|
184 ELSRC=`echo ${CHINESE-CNS} | sed 's/\.elc/.el/g'`; \
|
|
185 $(TAR) cf - $$ELSRC ${CHINESE-CNS} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
186
|
|
187 install-japanese: ${JAPANESE}
|
|
188 ELSRC=`echo ${JAPANESE} | sed 's/\.elc/.el/g'`; \
|
|
189 $(TAR) cf - $$ELSRC ${JAPANESE} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
190
|
|
191 install-korean: ${KOREAN}
|
|
192 ELSRC=`echo ${KOREAN} | sed 's/\.elc/.el/g'`; \
|
|
193 $(TAR) cf - $$ELSRC ${KOREAN} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
194
|
|
195 install-thai: ${THAI}
|
|
196 ELSRC=`echo ${THAI} | sed 's/\.elc/.el/g'`; \
|
|
197 $(TAR) cf - $$ELSRC ${THAI} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
198
|
|
199 install-vietnamese: ${VIETNAMESE}
|
|
200 ELSRC=`echo ${VIETNAMESE} | sed 's/\.elc/.el/g'`; \
|
|
201 $(TAR) cf - $$ELSRC ${VIETNAMESE} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
202
|
|
203 install-lao: ${LAO}
|
|
204 ELSRC=`echo ${LAO} | sed 's/\.elc/.el/g'`; \
|
|
205 $(TAR) cf - $$ELSRC ${LAO} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
206
|
|
207 install-indian: ${INSTALLDIR} ${INDIAN}
|
|
208 ELSRC=`echo ${INDIAN} | sed 's/\.elc/.el/g'`; \
|
|
209 $(TAR) cf - $$ELSRC ${INDIAN} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
210
|
|
211 install-tibetan: ${INSTALLDIR} ${TIBETAN}
|
|
212 ELSRC=`echo ${INDIAN} | sed 's/\.elc/.el/g'`; \
|
|
213 $(TAR) cf - $$ELSRC ${INDIAN} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
214
|
|
215 install-european: install-latin install-greek install-russian
|
|
216
|
|
217 install-latin: ${LATIN}
|
|
218 ELSRC=`echo ${LATIN} | sed 's/\.elc/.el/g'`; \
|
|
219 $(TAR) cf - $$ELSRC ${LATIN} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
220
|
|
221 install-greek: ${GREEK}
|
|
222 ELSRC=`echo ${GREEK} | sed 's/\.elc/.el/g'`; \
|
|
223 $(TAR) cf - $$ELSRC ${GREEK} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
224
|
|
225 install-russian: ${RUSSIAN}
|
|
226 ELSRC=`echo ${RUSSIAN} | sed 's/\.elc/.el/g'`; \
|
|
227 $(TAR) cf - $$ELSRC ${RUSSIAN} | (cd ${INSTALLDIR}; $(TAR) xfBp -)
|
|
228
|
|
229 install-misc: ${MISC}
|
|
230 ELSRC=`echo $^ | sed 's/\.elc/.el/g'`; \
|
|
231 $(CP) -fp $$ELSRC $^ ${INSTALLDIR}/quail
|
|
232 $(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
|