1 # Makefile for leim subdirectory in GNU Emacs.
2 # Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
3 # Licensed to the Free Software Foundation.
5 # This file is part of GNU Emacs.
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)
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.
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.
22 # Avoid trouble on systems where the `SHELL' variable might be
23 # inherited from the environment.
26 # Here are the things that we expect ../configure to edit.
32 # Where to install LEIM files.
33 INSTALLDIR
=${datadir}/emacs
/${version}/leim
35 # On Xenix and the IBM RS6000, double-dot gets screwed up.
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.
41 EMACS
= ${dot}${dot}/src
/emacs
43 buildlisppath
=${srcdir}/${dot}${dot}/lisp
45 # How to run Emacs. This forces Emacs to use new Emacs Lisp libraries.
46 RUN-EMACS
= EMACSLOADPATH
=${buildlisppath}:${buildlisppath}/international \
49 # Subdirectories to be made if ${srcdir} is different from the current
53 # Files generated from TIT dictionaries for Chinese GB character set.
64 # Files generated from TIT dictionaries for Chinese BIG5 character set.
76 CHINESE-GB
=${TIT-GB
} \
79 CHINESE-BIG5
=${TIT-BIG5
} \
80 quail
/quick-b5.el quail
/tsangchi-b5.el quail
/py-punct-b5.el
82 CHINESE-CNS
=quail
/quick-cns.el quail
/tsangchi-cns.el
84 JAPANESE
=quail
/japanese.el skk
/skkdic.el
86 KOREAN
= quail
/hangul.el \
94 VIETNAMESE
=quail
/viqr.el
96 LAO
=quail
/lao.el quail
/lrt.el
98 INDIAN
=quail
/devanagari.el
100 TIBETAN
=quail
/tibetan.el
102 LATIN
=quail
/latin-pre.el quail
/latin-post.el
106 RUSSIAN
=quail
/cyrillic.el
108 MISC
=quail
/ethiopic.el quail
/ipa.el
110 CHINESE
=${CHINESE-GB
} ${CHINESE-BIG5
} ${CHINESE-CNS
}
111 EASTASIA
=${CHINESE} ${JAPANESE} ${KOREAN}
112 ASIA
=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN}
113 EUROPEAN
=${LATIN} ${GREEK} ${RUSSIAN}
114 WORLD
=${ASIA} ${EUROPEAN} ${MISC}
116 all: ${SUBDIRS} ${WORLD} stamp-bytecomp leim-list.el
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
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)'\
130 -dir quail
${srcdir}/CXTERM-DIC
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.
136 @LN_S@
${srcdir}/$@
$@
138 stamp-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 \
142 @LN_S@
${srcdir}/skk
/skkdic.elc skk
; \
144 ${RUN-EMACS
} -batch
-l skkdic-cnv \
145 --eval
'(byte-recompile-directory "skk" 0)'; \
151 leim-list.el
: ${EMACS} ${SUBDIRS} ${WORLD}
152 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \".\")"
154 # install -- all languages supported by LEIM
155 # install-asia -- all Asian languages
156 # install-eastasia -- all Each Asian languages
157 # install-chinese -- all Chinese Languages
158 # install-chinese-gb -- Chinese (GB)
159 # install-chinese-big5 -- Chinese (BIG5)
160 # install-chinese-cns -- Chinese (CNS)
161 # install-japanese -- Japanese
162 # install-korean -- Korean (hangul and hanja)
163 # install-thai -- Thai
164 # install-vietnamese -- Vietnamese
166 # install-indian -- Indian (Devanagari script)
167 # install-tibetan -- Tibetan (Devanagari)
168 # install-european -- all European languages
169 # install-latin -- all Latin scripts
170 # install-greek -- Greek
171 # install-russian -- Russian (cyrillic)
172 # install-misc -- Ethiopic and IPA
175 tar cfh
- ${SUBDIRS} |
(cd
${INSTALLDIR}; tar xvf
-)
176 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
179 ELC
=`echo ${ASIA} | sed 's/\.el/.elc/g'`; \
180 tar cfh
- $$ELC ${ASIA} |
(cd
${INSTALLDIR}; tar xvf
-)
181 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
183 install-eastasia
: all
184 ELC
=`echo ${EASTASIA} | sed 's/\.el/.elc/g'`; \
185 tar cfh
- $$ELC ${EASTASIA} |
(cd
${INSTALLDIR}; tar xvf
-)
186 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
188 install-chinese
: all ${CHINESE}
189 ELC
=`echo ${CHINESE} | sed 's/\.el/.elc/g'`; \
190 tar cfh
- $$ELC ${CHINESE} |
(cd
${INSTALLDIR}; tar xvf
-)
191 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
193 install-chinese-gb
: all ${CHINESE-GB
}
194 ELC
=`echo ${CHINESE-GB} | sed 's/\.el/.elc/g'`; \
195 tar cfh
- $$ELC ${CHINESE-GB
} |
(cd
${INSTALLDIR}; tar xvf
-)
196 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
198 install-chinese-big5
: all ${CHINESE-BIG5
}
199 ELC
=`echo ${CHINESE-BIG5} | sed 's/\.el/.elc/g'`; \
200 tar cfh
- $$ELC ${CHINESE-BIG5
} |
(cd
${INSTALLDIR}; tar xvf
-)
201 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
203 install-chinese-cns
: all ${CHINESE-CNS
}
204 ELC
=`echo ${CHINESE-CNS} | sed 's/\.el/.elc/g'`; \
205 tar cfh
- $$ELC ${CHINESE-CNS
} |
(cd
${INSTALLDIR}; tar xvf
-)
206 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
208 install-japanese
: all ${JAPANESE}
209 ELC
=`echo ${JAPANESE} | sed 's/\.el/.elc/g'`; \
210 tar cfh
- $$ELC ${JAPANESE} |
(cd
${INSTALLDIR}; tar xvf
-)
211 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
213 install-korean
: all ${KOREAN}
214 ELC
=`echo ${KOREAN} | sed 's/\.el/.elc/g'`; \
215 tar cfh
- $$ELC ${KOREAN} |
(cd
${INSTALLDIR}; tar xvf
-)
216 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
218 install-thai
: all ${THAI}
219 ELC
=`echo ${THAI} | sed 's/\.el/.elc/g'`; \
220 tar cfh
- $$ELC ${THAI} |
(cd
${INSTALLDIR}; tar xvf
-)
221 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
223 install-vietnamese
: all ${VIETNAMESE}
224 ELC
=`echo ${VIETNAMESE} | sed 's/\.el/.elc/g'`; \
225 tar cfh
- $$ELC ${VIETNAMESE} |
(cd
${INSTALLDIR}; tar xvf
-)
226 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
228 install-lao
: all ${LAO}
229 ELC
=`echo ${LAO} | sed 's/\.el/.elc/g'`; \
230 tar cfh
- $$ELC ${LAO} |
(cd
${INSTALLDIR}; tar xvf
-)
231 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
233 install-indian
: all ${INDIAN}
234 ELC
=`echo ${INDIAN} | sed 's/\.el/.elc/g'`; \
235 tar cfh
- $$ELC ${INDIAN} |
(cd
${INSTALLDIR}; tar xvf
-)
236 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
238 install-tibetan
: all ${TIBETAN}
239 ELC
=`echo ${TIBETAN} | sed 's/\.el/.elc/g'`; \
240 tar cfh
- $$ELC ${TIBETAN} |
(cd
${INSTALLDIR}; tar xvf
-)
241 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
243 install-european
: all ${EUROPEAN}
244 ELC
=`echo ${EUROPEAN} | sed 's/\.el/.elc/g'`; \
245 tar cfh
- $$ELC ${EUROPEAN} |
(cd
${INSTALLDIR}; tar xvf
-)
246 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
248 install-latin
: all ${LATIN}
249 ELC
=`echo ${LATIN} | sed 's/\.el/.elc/g'`; \
250 tar cfh
- $$ELC ${LATIN} |
(cd
${INSTALLDIR}; tar xvf
-)
251 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
253 install-greek
: all ${GREEK}
254 ELC
=`echo ${GREEK} | sed 's/\.el/.elc/g'`; \
255 tar cfh
- $$ELC ${GREEK} |
(cd
${INSTALLDIR}; tar xvf
-)
256 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
258 install-russian
: all ${RUSSIAN}
259 ELC
=`echo ${RUSSIAN} | sed 's/\.el/.elc/g'`; \
260 tar cfh
- $$ELC ${RUSSIAN} |
(cd
${INSTALLDIR}; tar xvf
-)
261 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
263 install-misc
: all ${MISC}
264 ELC
=`echo ${MISC} | sed 's/\.el/.elc/g'`; \
265 tar cfh
- $$ELC ${MISC} |
(cd
${INSTALLDIR}; tar xvf
-)
266 ${RUN-EMACS
} -batch
--eval
"(update-leim-list-file \"${INSTALLDIR}\")"
269 rm -f quail
/*.elc stamp-bytecomp
271 # This used to use test -L, but that is not portable.
272 # If Makefile.in doesn't exist in the build directory
273 # then it isn't the source directory, so we should delete the file.
275 rm -rf
${TIT-GB
} ${TIT-BIG5
} quail
/*.elc stamp-bytecomp leim-list.el
276 # If this is not a dot-srcdir build, then remove the link made to skkdic.elc.
277 if
test ! -f Makefile.in
; then \
278 rm -f skk
/skkdic.elc
; \
281 distclean maintainer-clean
: clean
282 if
test -f stamp-subdir
; then
rm -rf
${SUBDIRS} stamp-subdir
; fi