(cpp-face): New widget.
[emacs.git] / leim / Makefile.in
blob5f7dad1902b074e2ab3894d2687eab11bff6613a
1 # Makefile for leim subdirectory in GNU Emacs.
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,2005
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
10 # This file is part of GNU Emacs.
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.
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.
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., 51 Franklin Street, Fifth Floor,
25 # Boston, MA 02110-1301, USA.
27 # Avoid trouble on systems where the `SHELL' variable might be
28 # inherited from the environment.
29 SHELL = /bin/sh
31 # Here are the things that we expect ../configure to edit.
32 version=@version@
33 prefix=@prefix@
34 datadir=@datadir@
35 srcdir=@srcdir@
37 # Where to install LEIM files.
38 INSTALLDIR=${datadir}/emacs/${version}/leim
40 GZIP_PROG = @GZIP_PROG@
42 # On Xenix and the IBM RS6000, double-dot gets screwed up.
43 dot = .
45 # Which Emacs to use to convert TIT files to Emacs Lisp files,
46 # byte-compile Emacs Lisp files, and generate the file leim-list.el.
47 BUILT-EMACS = ${dot}${dot}/src/emacs
49 buildlisppath=${srcdir}/${dot}${dot}/lisp
51 # How to run Emacs.
52 RUN-EMACS = EMACSLOADPATH=$(buildlisppath) \
53 ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte
55 # Subdirectories to be made if ${srcdir} is different from the current
56 # directory.
57 SUBDIRS=quail
59 # Files generated from TIT dictionaries for Chinese GB character set.
60 TIT-GB=\
61 quail/CCDOSPY.elc \
62 quail/Punct.elc \
63 quail/QJ.elc \
64 quail/SW.elc \
65 quail/TONEPY.elc
67 # Files generated from TIT dictionaries for Chinese BIG5 character set.
68 TIT-BIG5=\
69 quail/4Corner.elc \
70 quail/ARRAY30.elc \
71 quail/ECDICT.elc \
72 quail/ETZY.elc \
73 quail/Punct-b5.elc \
74 quail/PY-b5.elc \
75 quail/QJ-b5.elc \
76 quail/ZOZY.elc
78 CHINESE-TIT=${TIT-GB} ${TIT-BIG5}
80 NON-TIT-GB=${srcdir}/quail/py-punct.elc
82 NON-TIT-BIG5=${srcdir}/quail/pypunct-b5.elc
84 CHINESE-NON-TIT=${NON-TIT-GB} ${NON-TIT-BIG5}
86 CHINESE-GB=${TIT-GB} ${NON-TIT-GB}
88 CHINESE-BIG5=${TIT-BIG5} ${NON-TIT-BIG5}
90 JAPANESE=${srcdir}/quail/japanese.elc ${srcdir}/ja-dic/ja-dic.elc
92 KOREAN= ${srcdir}/quail/hangul.elc \
93 ${srcdir}/quail/hangul3.elc \
94 ${srcdir}/quail/hanja.elc \
95 ${srcdir}/quail/hanja3.elc \
96 ${srcdir}/quail/hanja-jis.elc \
97 ${srcdir}/quail/symbol-ksc.elc
99 THAI=${srcdir}/quail/thai.elc
101 VIETNAMESE=${srcdir}/quail/viqr.elc ${srcdir}/quail/vntelex.elc
103 LAO=${srcdir}/quail/lao.elc ${srcdir}/quail/lrt.elc
105 INDIAN=${srcdir}/quail/indian.elc
107 TIBETAN=${srcdir}/quail/tibetan.elc
109 LATIN= ${srcdir}/quail/latin-pre.elc \
110 ${srcdir}/quail/latin-post.elc \
111 ${srcdir}/quail/latin-alt.elc \
112 ${srcdir}/quail/latin-ltx.elc \
113 ${srcdir}/quail/welsh.elc
115 UNICODE=${srcdir}/quail/sgml-input.elc ${srcdir}/quail/rfc1345.elc \
116 ${srcdir}/quail/uni-input.elc
118 SLAVIC= \
119 ${srcdir}/quail/czech.elc \
120 ${srcdir}/quail/croatian.elc \
121 ${srcdir}/quail/slovak.elc
123 GREEK=${srcdir}/quail/greek.elc
125 RUSSIAN=${srcdir}/quail/cyrillic.elc ${srcdir}/quail/cyril-jis.elc
127 OTHERS= \
128 ${srcdir}/quail/ethiopic.elc \
129 ${srcdir}/quail/ipa.elc \
130 ${srcdir}/quail/hebrew.elc \
131 ${srcdir}/quail/georgian.elc \
132 ${srcdir}/quail/sisheng.elc
134 MISC= \
135 quail/tsang-b5.elc \
136 quail/quick-b5.elc \
137 quail/tsang-cns.elc \
138 quail/quick-cns.elc \
139 quail/PY.elc \
140 quail/ZIRANMA.elc \
141 quail/CTLau.elc \
142 quail/CTLau-b5.elc
144 CHINESE=${CHINESE-GB} ${CHINESE-BIG5}
145 EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN}
146 ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} ${TIBETAN}
147 EUROPEAN=${LATIN} ${SLAVIC} ${GREEK} ${RUSSIAN}
148 WORLD=${ASIA} ${EUROPEAN} ${OTHERS} ${MISC} ${UNICODE}
150 TIT-MISC=${CHINESE-TIT} ${MISC}
151 NON-TIT-MISC=${CHINESE-NON-TIT} ${JAPANESE} ${KOREAN} ${EUROPEAN} ${OTHERS}
153 .SUFFIXES: .elc .el
155 .el.elc:
156 ${RUN-EMACS} -f batch-byte-compile $<
158 all: ${BUILT-EMACS} ${SUBDIRS} leim-list.el ${WORLD}
160 # To ensure that we can run Emacs. This target is ignored (never
161 # being hit) if a user changes default value of EMACS.
162 ${dot}${dot}/src/emacs:
163 cd ../src; ${MAKE} ${MFLAGS} emacs
165 ${SUBDIRS}:
166 mkdir $@
167 touch stamp-subdir
169 TIT-SOURCES= \
170 ${srcdir}/CXTERM-DIC/4Corner.tit \
171 ${srcdir}/CXTERM-DIC/ARRAY30.tit \
172 ${srcdir}/CXTERM-DIC/CCDOSPY.tit \
173 ${srcdir}/CXTERM-DIC/ECDICT.tit \
174 ${srcdir}/CXTERM-DIC/ETZY.tit \
175 ${srcdir}/CXTERM-DIC/PY-b5.tit \
176 ${srcdir}/CXTERM-DIC/Punct-b5.tit \
177 ${srcdir}/CXTERM-DIC/Punct.tit \
178 ${srcdir}/CXTERM-DIC/QJ-b5.tit \
179 ${srcdir}/CXTERM-DIC/QJ.tit \
180 ${srcdir}/CXTERM-DIC/SW.tit \
181 ${srcdir}/CXTERM-DIC/TONEPY.tit \
182 ${srcdir}/CXTERM-DIC/ZOZY.tit
184 ${CHINESE-TIT:.elc=.el}: changed.tit
185 @true
187 changed.tit: ${TIT-SOURCES}
188 ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
189 -f batch-titdic-convert -dir quail ${srcdir}/CXTERM-DIC; \
190 echo "changed" > $@
192 MISC-SOURCES= \
193 ${srcdir}/MISC-DIC/CTLau-b5.html \
194 ${srcdir}/MISC-DIC/CTLau.html \
195 ${srcdir}/MISC-DIC/cangjie-table.b5 \
196 ${srcdir}/MISC-DIC/cangjie-table.cns \
197 ${srcdir}/MISC-DIC/pinyin.map \
198 ${srcdir}/MISC-DIC/ziranma.cin
200 ${MISC:.elc=.el}: changed.misc
201 @true
203 changed.misc: ${MISC-SOURCES}
204 ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
205 -f batch-miscdic-convert -dir quail ${srcdir}/MISC-DIC; \
206 echo "changed" > $@
208 leim-list.el: ${SUBDIRS} ${NON-TIT-MISC} changed.tit changed.misc ${srcdir}/leim-ext.el
209 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
210 -f batch-byte-compile-if-not-done ${TIT-MISC:.elc=.el}
211 if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \
212 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
213 --eval "(update-leim-list-file \".\")" ; \
214 else \
215 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
216 --eval "(update-leim-list-file \".\" \"${srcdir}\")" ; \
218 sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@
220 install: all
221 if [ x`(cd ${INSTALLDIR} && /bin/pwd)` != x`(/bin/pwd)` ] ; then \
222 rm -rf ${INSTALLDIR}/leim-list.el; \
223 rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/ja-dic ; \
224 echo "Copying leim files to ${INSTALLDIR} ..." ; \
225 if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \
226 tar -chf - leim-list.el quail ja-dic \
227 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
228 else \
229 tar -chf - leim-list.el quail \
230 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
231 cd ${srcdir}; \
232 tar -chf - quail/* ja-dic \
233 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
234 fi; \
235 rm -rf ${INSTALLDIR}/CVS ${INSTALLDIR}/*/CVS; \
236 rm -f ${INSTALLDIR}/.cvsignore ${INSTALLDIR}/*/.cvsignore; \
237 rm -f ${INSTALLDIR}/.arch-inventory ${INSTALLDIR}/*/.arch-inventory; \
238 rm -f ${INSTALLDIR}/\#* ${INSTALLDIR}/*/\#* ; \
239 rm -f ${INSTALLDIR}/.\#* ${INSTALLDIR}/*/.\#* ; \
240 rm -f ${INSTALLDIR}/*~ ${INSTALLDIR}/*/*~ ; \
241 rm -f ${INSTALLDIR}/*.orig ${INSTALLDIR}/*/*.orig ; \
242 else true; fi
243 -unset CDPATH; \
244 if [ -n "${GZIP_PROG}" ]; \
245 then \
246 echo "Compressing *.el ..." ; \
247 (cd ${INSTALLDIR}; for f in `find . -name "*.elc" -print`; do \
248 ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \
249 done) \
250 else true; fi
251 -chmod -R a+r ${INSTALLDIR}
253 clean mostlyclean:
254 rm -f ${TIT-MISC} ${TIT-MISC:.elc=.el} \
255 leim-list.el changed.tit changed.misc
257 distclean: clean
258 if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi
259 rm -f Makefile
261 maintainer-clean: distclean
262 rm -f ${WORLD}
264 extraclean: maintainer-clean
265 -rm -f *~ \#* m/?*~ s/?*~