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.
63 # Files generated from TIT dictionaries for Chinese BIG5 character set.
75 CHINESE-TIT
=${TIT-GB
} ${TIT-BIG5
}
77 NON-TIT-GB
=${srcdir}/quail
/py-punct.elc
79 NON-TIT-BIG5
=${srcdir}/quail
/quick-b5.elc
${srcdir}/quail
/tsang-b5.elc \
80 ${srcdir}/quail
/pypunct-b5.elc
82 NON-TIT-CNS
=${srcdir}/quail
/quick-cns.elc
${srcdir}/quail
/tsang-cns.elc
84 CHINESE-NON-TIT
=${NON-TIT-GB
} ${NON-TIT-BIG5
} ${NON-TIT-CNS
}
86 CHINESE-GB
=${TIT-GB
} ${NON-TIT-GB
}
88 CHINESE-BIG5
=${TIT-BIG5
} ${NON-TIT-BIG5
}
90 CHINESE-CNS
=${NON-TIT-CNS
}
92 JAPANESE
=${srcdir}/quail
/japanese.elc
${srcdir}/ja-dic
/ja-dic.elc
94 KOREAN
= ${srcdir}/quail
/hangul.elc \
95 ${srcdir}/quail
/hangul3.elc \
96 ${srcdir}/quail
/hanja.elc \
97 ${srcdir}/quail
/hanja-jis.elc \
98 ${srcdir}/quail
/symbol-ksc.elc
100 THAI
=${srcdir}/quail
/thai.elc
102 VIETNAMESE
=${srcdir}/quail
/viqr.elc
104 LAO
=${srcdir}/quail
/lao.elc
${srcdir}/quail
/lrt.elc
106 INDIAN
=${srcdir}/quail
/devanagari.elc
108 TIBETAN
=${srcdir}/quail
/tibetan.elc
110 LATIN
= ${srcdir}/quail
/latin-pre.elc \
111 ${srcdir}/quail
/latin-post.elc \
112 ${srcdir}/quail
/latin-alt.elc \
113 ${srcdir}/quail
/latin-ltx.elc
116 ${srcdir}/quail
/czech.elc \
117 ${srcdir}/quail
/slovak.elc
119 GREEK
=${srcdir}/quail
/greek.elc
121 RUSSIAN
=${srcdir}/quail
/cyrillic.elc
${srcdir}/quail
/cyril-jis.elc
124 ${srcdir}/quail
/ethiopic.elc \
125 ${srcdir}/quail
/ipa.elc \
126 ${srcdir}/quail
/hebrew.elc
128 CHINESE
=${CHINESE-GB
} ${CHINESE-BIG5
} ${CHINESE-CNS
}
129 EASTASIA
=${CHINESE} ${JAPANESE} ${KOREAN}
130 ASIA
=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} ${TIBETAN}
131 EUROPEAN
=${LATIN} ${SLAVIC} ${GREEK} ${RUSSIAN}
132 WORLD
=${ASIA} ${EUROPEAN} ${MISC}
135 NON-TIT
=${CHINESE-NON-TIT
} ${JAPANESE} ${KOREAN} ${EUROPEAN} ${MISC}
140 ${RUN-EMACS
} -f batch-byte-compile
$<
142 all: ${BUILT-EMACS
} ${SUBDIRS} ${TIT} leim-list.el
144 # To ensure that we can run Emacs. This target is ignored (never
145 # being hit) if a user changes default value of EMACS.
146 ${dot}${dot}/src
/emacs
:
147 cd ..
/src
; ${MAKE} ${MFLAGS} emacs
153 # Rule to generate quail/*.el from CXTERM-DIC/*.tit.
155 if
[ -d quail
]; then true
; else make quail
; fi
156 ${RUN-EMACS
} -l
${buildlisppath}/international
/titdic-cnv \
157 --eval
'(batch-titdic-convert t)' -dir quail
${srcdir}/CXTERM-DIC
158 ${RUN-EMACS
} -l
${buildlisppath}/international
/quail \
159 -f batch-byte-compile
${TIT
:.elc
=.el
}
161 leim-list.el
: ${SUBDIRS} ${WORLD}
162 if
[ x
`(cd ${srcdir} && /bin/pwd)` = x
`(/bin/pwd)` ] ; then \
163 ${RUN-EMACS
} -l
${buildlisppath}/international
/quail \
164 --eval
"(update-leim-list-file \".\")" ; \
166 ${RUN-EMACS
} -l
${buildlisppath}/international
/quail \
167 --eval
"(update-leim-list-file \".\" \"${srcdir}\")" ; \
171 if
[ x
`(cd ${INSTALLDIR} && /bin/pwd)` != x
`(/bin/pwd)` ] ; then \
172 rm -rf
${INSTALLDIR}/leim-list.el
; \
173 rm -rf
${INSTALLDIR}/quail
${INSTALLDIR}/ja-dic
; \
174 echo
"Copying leim files to ${INSTALLDIR} ..." ; \
175 if
[ x
`(cd ${srcdir} && /bin/pwd)` = x
`(/bin/pwd)` ] ; then \
176 tar -cf
- leim-list.el quail ja-dic \
177 |
(cd
${INSTALLDIR}; umask
0; tar -xvf
- && cat
> /dev
/null
) ;\
179 tar -cf
- leim-list.el quail \
180 |
(cd
${INSTALLDIR}; umask
0; tar -xvf
- && cat
> /dev
/null
) ;\
182 tar -cf
- quail
/* ja-dic \
183 |
(cd
${INSTALLDIR}; umask
0; tar -xvf
- && cat
> /dev
/null
) ;\
186 -chmod
-R a
+r
${INSTALLDIR}
189 rm -f
${TIT} ${NON-TIT
} ${WORLD} ${TIT
:.elc
=.el
} leim-list.el
191 distclean maintainer-clean
:
192 if
test -f stamp-subdir
; then
rm -rf
${SUBDIRS} stamp-subdir
; fi
195 extraclean
: distclean
196 -rm -f
*~ \
#* m/?*~ s/?*~