31917
|
1 # Makefile for leim subdirectory in GNU Emacs.
|
56413
|
2 # Copyright (C) 1997,98,1999,2000,2001 Electrotechnical Laboratory, JAPAN.
|
|
3 # Licensed to the Free Software Foundation.
|
|
4 # Copyright (C) 1997,98,1999,2000,01,02,03,2004
|
|
5 # Free Software Foundation, Inc.
|
|
6 # Copyright (C) 2001,02,03,2004
|
|
7 # National Institute of Advanced Industrial Science and Technology (AIST)
|
|
8 # Registration Number H14PRO021
|
31917
|
9
|
|
10 # This file is part of GNU Emacs.
|
|
11
|
|
12 # GNU Emacs is free software; you can redistribute it and/or modify
|
|
13 # it under the terms of the GNU General Public License as published by
|
|
14 # the Free Software Foundation; either version 2, or (at your option)
|
|
15 # any later version.
|
|
16 #
|
|
17 # GNU Emacs is distributed in the hope that it will be useful,
|
|
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20 # GNU General Public License for more details.
|
|
21 #
|
|
22 # You should have received a copy of the GNU General Public License
|
|
23 # along with GNU Emacs; see the file COPYING. If not, write to the
|
|
24 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
25 # Boston, MA 02111-1307, USA.
|
|
26
|
|
27 # Avoid trouble on systems where the `SHELL' variable might be
|
|
28 # inherited from the environment.
|
|
29 SHELL = /bin/sh
|
|
30
|
|
31 # Here are the things that we expect ../configure to edit.
|
|
32 version=@version@
|
|
33 prefix=@prefix@
|
|
34 datadir=@datadir@
|
|
35 srcdir=@srcdir@
|
|
36
|
|
37 # Where to install LEIM files.
|
|
38 INSTALLDIR=${datadir}/emacs/${version}/leim
|
|
39
|
|
40 # On Xenix and the IBM RS6000, double-dot gets screwed up.
|
|
41 dot = .
|
|
42
|
|
43 # Which Emacs to use to convert TIT files to Emacs Lisp files,
|
|
44 # byte-compile Emacs Lisp files, and generate the file leim-list.el.
|
|
45 BUILT-EMACS = ${dot}${dot}/src/emacs
|
|
46
|
|
47 buildlisppath=${srcdir}/${dot}${dot}/lisp
|
|
48
|
|
49 # How to run Emacs.
|
|
50 RUN-EMACS = EMACSLOADPATH=$(buildlisppath) \
|
|
51 ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte
|
|
52
|
|
53 # Subdirectories to be made if ${srcdir} is different from the current
|
|
54 # directory.
|
|
55 SUBDIRS=quail
|
|
56
|
|
57 # Files generated from TIT dictionaries for Chinese GB character set.
|
|
58 TIT-GB=\
|
|
59 quail/CCDOSPY.elc \
|
|
60 quail/Punct.elc \
|
|
61 quail/QJ.elc \
|
|
62 quail/SW.elc \
|
37118
|
63 quail/TONEPY.elc
|
31917
|
64
|
|
65 # Files generated from TIT dictionaries for Chinese BIG5 character set.
|
|
66 TIT-BIG5=\
|
|
67 quail/4Corner.elc \
|
|
68 quail/ARRAY30.elc \
|
|
69 quail/ECDICT.elc \
|
|
70 quail/ETZY.elc \
|
|
71 quail/Punct-b5.elc \
|
|
72 quail/PY-b5.elc \
|
|
73 quail/QJ-b5.elc \
|
|
74 quail/ZOZY.elc
|
|
75
|
|
76 CHINESE-TIT=${TIT-GB} ${TIT-BIG5}
|
|
77
|
|
78 NON-TIT-GB=${srcdir}/quail/py-punct.elc
|
|
79
|
37118
|
80 NON-TIT-BIG5=${srcdir}/quail/pypunct-b5.elc
|
31917
|
81
|
37118
|
82 CHINESE-NON-TIT=${NON-TIT-GB} ${NON-TIT-BIG5}
|
31917
|
83
|
|
84 CHINESE-GB=${TIT-GB} ${NON-TIT-GB}
|
|
85
|
49600
|
86 CHINESE-BIG5=${TIT-BIG5} ${NON-TIT-BIG5}
|
31917
|
87
|
|
88 JAPANESE=${srcdir}/quail/japanese.elc ${srcdir}/ja-dic/ja-dic.elc
|
18673
|
89
|
31917
|
90 KOREAN= ${srcdir}/quail/hangul.elc \
|
|
91 ${srcdir}/quail/hangul3.elc \
|
|
92 ${srcdir}/quail/hanja.elc \
|
37130
|
93 ${srcdir}/quail/hanja3.elc \
|
31917
|
94 ${srcdir}/quail/hanja-jis.elc \
|
|
95 ${srcdir}/quail/symbol-ksc.elc
|
|
96
|
|
97 THAI=${srcdir}/quail/thai.elc
|
|
98
|
43705
223fa5122806
* Makefile.in (VIETNAMESE), makefile.nt (VIETNAMESE), makefile.w32-in
Werner LEMBERG <wl@gnu.org>
diff
changeset
|
99 VIETNAMESE=${srcdir}/quail/viqr.elc ${srcdir}/quail/vntelex.elc
|
31917
|
100
|
|
101 LAO=${srcdir}/quail/lao.elc ${srcdir}/quail/lrt.elc
|
|
102
|
41465
|
103 INDIAN=${srcdir}/quail/indian.elc
|
31917
|
104
|
|
105 TIBETAN=${srcdir}/quail/tibetan.elc
|
|
106
|
35811
|
107 LATIN= ${srcdir}/quail/latin-pre.elc \
|
|
108 ${srcdir}/quail/latin-post.elc \
|
35837
|
109 ${srcdir}/quail/latin-alt.elc \
|
40709
|
110 ${srcdir}/quail/latin-ltx.elc \
|
|
111 ${srcdir}/quail/welsh.elc
|
|
112
|
|
113 UNICODE=${srcdir}/quail/sgml-input.elc ${srcdir}/quail/rfc1345.elc \
|
|
114 ${srcdir}/quail/uni-input.elc
|
31917
|
115
|
|
116 SLAVIC= \
|
|
117 ${srcdir}/quail/czech.elc \
|
49040
|
118 ${srcdir}/quail/croatian.elc \
|
31917
|
119 ${srcdir}/quail/slovak.elc
|
|
120
|
|
121 GREEK=${srcdir}/quail/greek.elc
|
|
122
|
|
123 RUSSIAN=${srcdir}/quail/cyrillic.elc ${srcdir}/quail/cyril-jis.elc
|
|
124
|
55282
|
125 OTHERS= \
|
31917
|
126 ${srcdir}/quail/ethiopic.elc \
|
|
127 ${srcdir}/quail/ipa.elc \
|
40709
|
128 ${srcdir}/quail/hebrew.elc \
|
55628
|
129 ${srcdir}/quail/georgian.elc \
|
|
130 ${srcdir}/quail/sisheng.elc
|
31917
|
131
|
55282
|
132 MISC= \
|
37118
|
133 quail/tsang-b5.elc \
|
|
134 quail/quick-b5.elc \
|
|
135 quail/tsang-cns.elc \
|
|
136 quail/quick-cns.elc \
|
|
137 quail/PY.elc \
|
37876
|
138 quail/ZIRANMA.elc \
|
|
139 quail/CTLau.elc \
|
37881
|
140 quail/CTLau-b5.elc
|
37118
|
141
|
|
142 CHINESE=${CHINESE-GB} ${CHINESE-BIG5}
|
31917
|
143 EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN}
|
|
144 ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} ${TIBETAN}
|
|
145 EUROPEAN=${LATIN} ${SLAVIC} ${GREEK} ${RUSSIAN}
|
55282
|
146 WORLD=${ASIA} ${EUROPEAN} ${OTHERS} ${MISC} ${UNICODE}
|
31917
|
147
|
55282
|
148 TIT-MISC=${CHINESE-TIT} ${MISC}
|
|
149 NON-TIT-MISC=${CHINESE-NON-TIT} ${JAPANESE} ${KOREAN} ${EUROPEAN} ${OTHERS}
|
31917
|
150
|
33664
|
151 .SUFFIXES: .elc .el
|
|
152
|
31917
|
153 .el.elc:
|
|
154 ${RUN-EMACS} -f batch-byte-compile $<
|
|
155
|
55489
|
156 all: ${BUILT-EMACS} ${SUBDIRS} leim-list.el ${WORLD}
|
31917
|
157
|
|
158 # To ensure that we can run Emacs. This target is ignored (never
|
|
159 # being hit) if a user changes default value of EMACS.
|
|
160 ${dot}${dot}/src/emacs:
|
|
161 cd ../src; ${MAKE} ${MFLAGS} emacs
|
|
162
|
|
163 ${SUBDIRS}:
|
|
164 mkdir $@
|
|
165 touch stamp-subdir
|
|
166
|
55282
|
167 TIT-SOURCES= \
|
55353
|
168 ${srcdir}/CXTERM-DIC/4Corner.tit \
|
|
169 ${srcdir}/CXTERM-DIC/ARRAY30.tit \
|
|
170 ${srcdir}/CXTERM-DIC/CCDOSPY.tit \
|
|
171 ${srcdir}/CXTERM-DIC/ECDICT.tit \
|
|
172 ${srcdir}/CXTERM-DIC/ETZY.tit \
|
|
173 ${srcdir}/CXTERM-DIC/PY-b5.tit \
|
|
174 ${srcdir}/CXTERM-DIC/Punct-b5.tit \
|
|
175 ${srcdir}/CXTERM-DIC/Punct.tit \
|
|
176 ${srcdir}/CXTERM-DIC/QJ-b5.tit \
|
|
177 ${srcdir}/CXTERM-DIC/QJ.tit \
|
|
178 ${srcdir}/CXTERM-DIC/SW.tit \
|
|
179 ${srcdir}/CXTERM-DIC/TONEPY.tit \
|
|
180 ${srcdir}/CXTERM-DIC/ZOZY.tit
|
37062
|
181
|
56289
|
182 ${CHINESE-TIT:.elc=.el}: changed.tit
|
|
183 @true
|
|
184
|
55282
|
185 changed.tit: ${TIT-SOURCES}
|
55524
|
186 ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
|
|
187 -f batch-titdic-convert -dir quail ${srcdir}/CXTERM-DIC; \
|
|
188 echo "changed" > $@
|
37062
|
189
|
55282
|
190 MISC-SOURCES= \
|
55353
|
191 ${srcdir}/MISC-DIC/CTLau-b5.html \
|
|
192 ${srcdir}/MISC-DIC/CTLau.html \
|
|
193 ${srcdir}/MISC-DIC/cangjie-table.b5 \
|
|
194 ${srcdir}/MISC-DIC/cangjie-table.cns \
|
|
195 ${srcdir}/MISC-DIC/pinyin.map \
|
|
196 ${srcdir}/MISC-DIC/ziranma.cin
|
55282
|
197
|
56289
|
198 ${MISC:.elc=.el}: changed.misc
|
|
199 @true
|
|
200
|
55282
|
201 changed.misc: ${MISC-SOURCES}
|
55524
|
202 ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
|
|
203 -f batch-miscdic-convert -dir quail ${srcdir}/MISC-DIC; \
|
|
204 echo "changed" > $@
|
31917
|
205
|
55918
|
206 leim-list.el: ${SUBDIRS} ${NON-TIT-MISC} changed.tit changed.misc ${srcdir}/leim-ext.el
|
55282
|
207 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
|
|
208 -f batch-byte-compile-if-not-done ${TIT-MISC:.elc=.el}
|
31917
|
209 if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \
|
|
210 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
|
|
211 --eval "(update-leim-list-file \".\")" ; \
|
|
212 else \
|
|
213 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
|
|
214 --eval "(update-leim-list-file \".\" \"${srcdir}\")" ; \
|
|
215 fi
|
55918
|
216 sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@
|
31917
|
217
|
|
218 install: all
|
|
219 if [ x`(cd ${INSTALLDIR} && /bin/pwd)` != x`(/bin/pwd)` ] ; then \
|
|
220 rm -rf ${INSTALLDIR}/leim-list.el; \
|
|
221 rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/ja-dic ; \
|
|
222 echo "Copying leim files to ${INSTALLDIR} ..." ; \
|
|
223 if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \
|
45327
|
224 tar -chf - leim-list.el quail ja-dic \
|
31917
|
225 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
|
|
226 else \
|
45327
|
227 tar -chf - leim-list.el quail \
|
31917
|
228 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
|
|
229 cd ${srcdir}; \
|
45327
|
230 tar -chf - quail/* ja-dic \
|
31917
|
231 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
|
|
232 fi; \
|
50456
|
233 rm -rf ${INSTALLDIR}/CVS ${INSTALLDIR}/*/CVS; \
|
|
234 rm -f ${INSTALLDIR}/.cvsignore ${INSTALLDIR}/*/.cvsignore; \
|
56604
|
235 rm -f ${INSTALLDIR}/.arch-inventory ${INSTALLDIR}/*/.arch-inventory; \
|
50456
|
236 rm -f ${INSTALLDIR}/\#* ${INSTALLDIR}/*/\#* ; \
|
|
237 rm -f ${INSTALLDIR}/.\#* ${INSTALLDIR}/*/.\#* ; \
|
|
238 rm -f ${INSTALLDIR}/*~ ${INSTALLDIR}/*/*~ ; \
|
|
239 rm -f ${INSTALLDIR}/*.orig ${INSTALLDIR}/*/*.orig ; \
|
31917
|
240 else true; fi
|
|
241 -chmod -R a+r ${INSTALLDIR}
|
|
242
|
|
243 clean mostlyclean:
|
55283
|
244 rm -f ${TIT-MISC} ${TIT-MISC:.elc=.el} \
|
55282
|
245 leim-list.el changed.tit changed.misc
|
31917
|
246
|
54215
|
247 distclean: clean
|
31917
|
248 if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi
|
|
249 rm -f Makefile
|
35670
|
250
|
54215
|
251 maintainer-clean: distclean
|
|
252 rm -f ${WORLD}
|
|
253
|
|
254 extraclean: maintainer-clean
|
35670
|
255 -rm -f *~ \#* m/?*~ s/?*~
|