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.
38 # Which Emacs to use to convert TIT files to Emacs Lisp files,
39 # byte-compile Emacs Lisp files, and generate the file leim-list.el.
40 BUILT-EMACS
= ${dot}${dot}/src
/emacs
42 buildlisppath
=${srcdir}/${dot}${dot}/lisp
45 RUN-EMACS
= EMACSLOADPATH
=$(buildlisppath
) \
46 ${BUILT-EMACS
} -batch
--no-init-file
--no-site-file
--multibyte
48 # Subdirectories to be made if ${srcdir} is different from the current
52 # Files generated from TIT dictionaries for Chinese GB character set.
60 # Files generated from TIT dictionaries for Chinese BIG5 character set.
71 CHINESE-TIT
=${TIT-GB
} ${TIT-BIG5
}
73 NON-TIT-GB
=${srcdir}/quail
/py-punct.elc
75 NON-TIT-BIG5
=${srcdir}/quail
/pypunct-b5.elc
77 CHINESE-NON-TIT
=${NON-TIT-GB
} ${NON-TIT-BIG5
}
79 CHINESE-GB
=${TIT-GB
} ${NON-TIT-GB
}
81 CHINESE-BIG5
=${TIT-BIG5
} ${NON-TIT-BIG5
}
83 JAPANESE
=${srcdir}/quail
/japanese.elc
${srcdir}/ja-dic
/ja-dic.elc
85 KOREAN
= ${srcdir}/quail
/hangul.elc \
86 ${srcdir}/quail
/hangul3.elc \
87 ${srcdir}/quail
/hanja.elc \
88 ${srcdir}/quail
/hanja3.elc \
89 ${srcdir}/quail
/hanja-jis.elc \
90 ${srcdir}/quail
/symbol-ksc.elc
92 THAI
=${srcdir}/quail
/thai.elc
94 VIETNAMESE
=${srcdir}/quail
/viqr.elc
${srcdir}/quail
/vntelex.elc
96 LAO
=${srcdir}/quail
/lao.elc
${srcdir}/quail
/lrt.elc
98 INDIAN
=${srcdir}/quail
/indian.elc
100 TIBETAN
=${srcdir}/quail
/tibetan.elc
102 LATIN
= ${srcdir}/quail
/latin-pre.elc \
103 ${srcdir}/quail
/latin-post.elc \
104 ${srcdir}/quail
/latin-alt.elc \
105 ${srcdir}/quail
/latin-ltx.elc \
106 ${srcdir}/quail
/welsh.elc
108 UNICODE
=${srcdir}/quail
/sgml-input.elc
${srcdir}/quail
/rfc1345.elc \
109 ${srcdir}/quail
/uni-input.elc
112 ${srcdir}/quail
/czech.elc \
113 ${srcdir}/quail
/croatian.elc \
114 ${srcdir}/quail
/slovak.elc
116 GREEK
=${srcdir}/quail
/greek.elc
118 RUSSIAN
=${srcdir}/quail
/cyrillic.elc
${srcdir}/quail
/cyril-jis.elc
121 ${srcdir}/quail
/ethiopic.elc \
122 ${srcdir}/quail
/ipa.elc \
123 ${srcdir}/quail
/hebrew.elc \
124 ${srcdir}/quail
/georgian.elc
129 quail
/tsang-cns.elc \
130 quail
/quick-cns.elc \
136 CHINESE
=${CHINESE-GB
} ${CHINESE-BIG5
}
137 EASTASIA
=${CHINESE} ${JAPANESE} ${KOREAN}
138 ASIA
=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} ${TIBETAN}
139 EUROPEAN
=${LATIN} ${SLAVIC} ${GREEK} ${RUSSIAN}
140 WORLD
=${ASIA} ${EUROPEAN} ${OTHERS} ${MISC} ${UNICODE}
142 TIT-MISC
=${CHINESE-TIT
} ${MISC}
143 NON-TIT-MISC
=${CHINESE-NON-TIT
} ${JAPANESE} ${KOREAN} ${EUROPEAN} ${OTHERS}
148 ${RUN-EMACS
} -f batch-byte-compile
$<
150 all: ${BUILT-EMACS
} ${SUBDIRS} leim-list.el
152 # To ensure that we can run Emacs. This target is ignored (never
153 # being hit) if a user changes default value of EMACS.
154 ${dot}${dot}/src
/emacs
:
155 cd ..
/src
; ${MAKE} ${MFLAGS} emacs
162 ${srcdir}/CXTERM-DIC
/4Corner.tit \
163 ${srcdir}/CXTERM-DIC
/ARRAY30.tit \
164 ${srcdir}/CXTERM-DIC
/CCDOSPY.tit \
165 ${srcdir}/CXTERM-DIC
/ECDICT.tit \
166 ${srcdir}/CXTERM-DIC
/ETZY.tit \
167 ${srcdir}/CXTERM-DIC
/PY-b5.tit \
168 ${srcdir}/CXTERM-DIC
/Punct-b5.tit \
169 ${srcdir}/CXTERM-DIC
/Punct.tit \
170 ${srcdir}/CXTERM-DIC
/QJ-b5.tit \
171 ${srcdir}/CXTERM-DIC
/QJ.tit \
172 ${srcdir}/CXTERM-DIC
/SW.tit \
173 ${srcdir}/CXTERM-DIC
/TONEPY.tit \
174 ${srcdir}/CXTERM-DIC
/ZOZY.tit
176 changed.tit
: ${TIT-SOURCES
}
180 ${srcdir}/MISC-DIC
/CTLau-b5.html \
181 ${srcdir}/MISC-DIC
/CTLau.html \
182 ${srcdir}/MISC-DIC
/cangjie-table.b5 \
183 ${srcdir}/MISC-DIC
/cangjie-table.cns \
184 ${srcdir}/MISC-DIC
/pinyin.map \
185 ${srcdir}/MISC-DIC
/ziranma.cin
187 changed.misc
: ${MISC-SOURCES
}
190 leim-list.el
: ${SUBDIRS} ${NON-TIT-MISC
} changed.tit changed.misc
191 if
[ `(cat changed.tit)` = 0 ] ; then \
192 ${RUN-EMACS
} -l
${buildlisppath}/international
/titdic-cnv \
193 -f batch-titdic-convert
-dir quail
${srcdir}/CXTERM-DIC
; \
194 echo
"1" > changed.tit
; \
196 if
[ `(cat changed.misc)` = 0 ] ; then \
197 ${RUN-EMACS
} -l
${buildlisppath}/international
/titdic-cnv \
198 -f batch-miscdic-convert
-dir quail
${srcdir}/MISC-DIC
; \
199 echo
"1" > changed.misc
; \
201 ${RUN-EMACS
} -l
${buildlisppath}/international
/quail \
202 -f batch-byte-compile-if-not-done
${TIT-MISC
:.elc
=.el
}
203 if
[ x
`(cd ${srcdir} && /bin/pwd)` = x
`(/bin/pwd)` ] ; then \
204 ${RUN-EMACS
} -l
${buildlisppath}/international
/quail \
205 --eval
"(update-leim-list-file \".\")" ; \
207 ${RUN-EMACS
} -l
${buildlisppath}/international
/quail \
208 --eval
"(update-leim-list-file \".\" \"${srcdir}\")" ; \
212 if
[ x
`(cd ${INSTALLDIR} && /bin/pwd)` != x
`(/bin/pwd)` ] ; then \
213 rm -rf
${INSTALLDIR}/leim-list.el
; \
214 rm -rf
${INSTALLDIR}/quail
${INSTALLDIR}/ja-dic
; \
215 echo
"Copying leim files to ${INSTALLDIR} ..." ; \
216 if
[ x
`(cd ${srcdir} && /bin/pwd)` = x
`(/bin/pwd)` ] ; then \
217 tar -chf
- leim-list.el quail ja-dic \
218 |
(cd
${INSTALLDIR}; umask
0; tar -xvf
- && cat
> /dev
/null
) ;\
220 tar -chf
- leim-list.el quail \
221 |
(cd
${INSTALLDIR}; umask
0; tar -xvf
- && cat
> /dev
/null
) ;\
223 tar -chf
- quail
/* ja-dic \
224 |
(cd
${INSTALLDIR}; umask
0; tar -xvf
- && cat
> /dev
/null
) ;\
226 rm -rf
${INSTALLDIR}/CVS
${INSTALLDIR}/*/CVS
; \
227 rm -f
${INSTALLDIR}/.cvsignore
${INSTALLDIR}/*/.cvsignore
; \
228 rm -f
${INSTALLDIR}/\
#* ${INSTALLDIR}/*/\#* ; \
229 rm -f
${INSTALLDIR}/.\
#* ${INSTALLDIR}/*/.\#* ; \
230 rm -f
${INSTALLDIR}/*~
${INSTALLDIR}/*/*~
; \
231 rm -f
${INSTALLDIR}/*.orig
${INSTALLDIR}/*/*.orig
; \
233 -chmod
-R a
+r
${INSTALLDIR}
236 rm -f
${TIT-MISC
} ${TIT-MISC
:.elc
=.el
} \
237 leim-list.el changed.tit changed.misc
240 if
test -f stamp-subdir
; then
rm -rf
${SUBDIRS} stamp-subdir
; fi
243 maintainer-clean
: distclean
246 extraclean
: maintainer-clean
247 -rm -f
*~ \
#* m/?*~ s/?*~
249 # arch-tag: f666a939-8145-4d64-a6a6-cc1f61bd32ca