summaryrefslogtreecommitdiff
path: root/leim/Makefile.in
blob: 81f11c4909f270b6ac22ee0b3b732c3431a981b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# Makefile for leim subdirectory in GNU Emacs.
# Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
# Licensed to the Free Software Foundation.

# This file is part of GNU Emacs.

# GNU Emacs is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING.  If not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

# Avoid trouble on systems where the `SHELL' variable might be
# inherited from the environment.
SHELL = /bin/sh

# Here are the things that we expect ../configure to edit.
version=@version@
prefix=@prefix@
datadir=@datadir@
lispdir=@lispdir@
srcdir=@srcdir@

INSTALLDIR=${datadir}/emacs/${version}/leim

EMACS=../src/emacs

TAR=tar
CP=cp

SUBDIRS=quail skk

TIT-GB=\
	quail/CTLau.elc		\
	quail/CCDOSPY.elc	\
	quail/Punct.elc		\
	quail/PY.elc		\
	quail/QJ.elc		\
	quail/SW.elc		\
	quail/TONEPY.elc	\
	quail/ZIRANMA.elc

TIT-BIG5=\
	quail/4Corner.elc	\
	quail/ARRAY30.elc	\
	quail/CTLauB.elc	\
	quail/ECDICT.elc	\
	quail/ETZY.elc		\
	quail/Punct-b5.elc	\
	quail/PY-b5.elc		\
	quail/QJ-b5.elc		\
	quail/ZOZY.elc

CHINESE-GB=${TIT-GB} \
	quail/py-punct.elc

CHINESE-BIG5=${TIT-BIG5} \
	quail/quick-b5.elc quail/tsangchi-b5.elc quail/py-punct-b5.elc

CHINESE-CNS=quail/quick-cns.elc	quail/tsangchi-cns.elc

JAPANESE=quail/japanese.elc skk/skkdic.elc

KOREAN=	quail/hangul.elc	\
	quail/hangul3.elc	\
	quail/hanja.elc		\
	quail/hanja-jis.elc	\
	quail/symbol-ksc.elc

THAI=quail/thai.elc

VIETNAMESE=quail/viqr.elc

LAO=quail/lao.elc quail/lrt.elc

INDIAN=quail/devanagari.elc

TIBETAN=quail/tibetan.elc

LATIN=quail/latin-pre.elc quail/latin-post.elc

GREEK=quail/greek.elc

RUSSIAN=quail/cyrillic.elc

MISC=quail/ethiopic.elc quail/ipa.elc

CHINESE=${CHINESE-GB} ${CHINESE-BIG5} ${CHINESE-CNS}
EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN}
ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN}
EUROPEAN=${LATIN} ${GREEK} ${RUSSIAN}
WORLD=${ASIA} ${EUROPEAN} ${MISC}

all: ${SUBDIRS} ${WORLD} leim-list.el

quail:
	mkdir quail
	ln -s ${srcdir}/quail/*.el quail

skk:
	mkdir skk
	ln -s ${srcdir}/skk/* skk

${TIT-GB} ${TIT-BIG5}:
	$(EMACS) -batch -l titdic-cnv -f batch-titdic-convert\
		-dir quail ${srcdir}/CXTERM-DIC
	$(EMACS) -batch --eval '(byte-recompile-directory "quail" 0)'

quail/%.el:
	for f in ${srcdir}/quail/*.el; do \
	  [ -f quail/`basename $$f` ] || (cd quail; ln -s $$f .); \
	done

quail/%.elc: quail/%.el
	$(EMACS) -batch --eval '(byte-recompile-directory "quail" 0)'

skk/%.el:
	ln -s ${srcdir}/$@ $@

skk/%.elc: skk/%.el
	$(EMACS) -batch -l skkdic-cnv -f batch-byte-compile $<

leim-list.el: ${WORLD}
	$(EMACS) -batch --eval "(update-leim-list-file \".\")"

# install -- all languages supported by LEIM
#   install-asia -- all Asian languages
#     install-eastasia -- all Each Asian languages
#       install-chinese -- all Chinese Languages
#         install-chinese-gb -- Chinese (GB)
#         install-chinese-big5 -- Chinese (BIG5)
#         install-chinese-cns -- Chinese (CNS)
#       install-japanese -- Japanese
#       install-korean -- Korean (hangul and hanja)
#     install-thai -- Thai
#     install-vietnamese -- Vietnamese
#     install-lao -- Lao
#     install-indian -- Indian (Devanagari script)
#     install-tibetan -- Tibetan (Devanagari)
#   install-european -- all European languages
#     install-latin -- all Latin scripts
#     install-greek -- Greek
#     install-russian -- Russian (cyrillic)
#   install-misc -- Ethiopic and IPA

install: all
	EL=`echo ${WORLD} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${WORLD} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-asia: all
	EL=`echo ${ASIA} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${ASIA} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-eastasia: all
	EL=`echo ${EASTASIA} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${EASTASIA} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-chinese: all ${CHINESE}
	EL=`echo ${CHINESE} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${CHINESE} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-chinese-gb: all ${CHINESE-GB}
	EL=`echo ${CHINESE-GB} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${CHINESE-GB} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-chinese-big5: all ${CHINESE-BIG5}
	EL=`echo ${CHINESE-BIG5} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${CHINESE-BIG5} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-chinese-cns: all ${CHINESE-CNS}
	EL=`echo ${CHINESE-CNS} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${CHINESE-CNS} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-japanese: all ${JAPANESE}
	EL=`echo ${JAPANESE} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${JAPANESE} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-korean: all ${KOREAN}
	EL=`echo ${KOREAN} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${KOREAN} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-thai: all ${THAI}
	EL=`echo ${THAI} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${THAI} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-vietnamese: all ${VIETNAMESE}
	EL=`echo ${VIETNAMESE} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${VIETNAMESE} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-lao: all ${LAO}
	EL=`echo ${LAO} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${LAO} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-indian: all ${INDIAN}
	EL=`echo ${INDIAN} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${INDIAN} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-tibetan: all ${TIBETAN}
	EL=`echo ${TIBETAN} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${TIBETAN} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-european: all ${EUROPEAN}
	EL=`echo ${EUROPEAN} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${EUROPEAN} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-latin: all ${LATIN}
	EL=`echo ${LATIN} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${LATIN} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-greek: all ${GREEK}
	EL=`echo ${GREEK} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${GREEK} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-russian: all ${RUSSIAN}
	EL=`echo ${RUSSIAN} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${RUSSIAN} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

install-misc: all ${MISC}
	EL=`echo ${MISC} | sed 's/\.elc/.el/g'`; \
	$(TAR) cfh - $$EL ${MISC} | (cd ${INSTALLDIR}; $(TAR) xvf -)
	$(EMACS) -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"

mostlyclean:
	rm -f quail/*.elc

clean:
	rm -rf ${SUBDIRS} leim-list.el

distclean maintainer-clean: clean
	rm -f Makefile