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
= ${EMACS} -batch
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 TIT
=${TIT-GB
} ${TIT-BIG5
}
77 CHINESE-GB
=${TIT-GB
} \
80 CHINESE-BIG5
=${TIT-BIG5
} \
81 quail
/quick-b5.el quail
/tsangchi-b5.el quail
/py-punct-b5.el
83 CHINESE-CNS
=quail
/quick-cns.el quail
/tsangchi-cns.el
85 JAPANESE
=quail
/japanese.el skk
/skkdic.el
87 KOREAN
= quail
/hangul.el \
95 VIETNAMESE
=quail
/viqr.el
97 LAO
=quail
/lao.el quail
/lrt.el
99 INDIAN
=quail
/devanagari.el
101 TIBETAN
=quail
/tibetan.el
103 LATIN
=quail
/latin-pre.el quail
/latin-post.el
107 RUSSIAN
=quail
/cyrillic.el
109 MISC
=quail
/ethiopic.el quail
/ipa.el
111 CHINESE
=${CHINESE-GB
} ${CHINESE-BIG5
} ${CHINESE-CNS
}
112 EASTASIA
=${CHINESE} ${JAPANESE} ${KOREAN}
113 ASIA
=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} ${TIBETAN}
114 EUROPEAN
=${LATIN} ${GREEK} ${RUSSIAN}
115 WORLD
=${ASIA} ${EUROPEAN} ${MISC}
117 all: ${EMACS} ${SUBDIRS} ${WORLD} leim-list.el
119 # To ensure that we can run Emacs. This target is ignored (never
120 # being hit) if a user changes default value of EMACS.
121 ${dot}${dot}/src
/emacs
:
122 cd ..
/src
; ${MAKE} ${MFLAGS} emacs
128 # Rule to generate quail/*.el from CXTERM-DIC/*.tit.
130 ${RUN-EMACS
} -l
${buildlisppath}/international
/titdic-cnv \
131 --eval
'(batch-titdic-convert t)' -dir quail
${srcdir}/CXTERM-DIC
132 ${RUN-EMACS
} -f batch-byte-compile
${TIT}
134 # Emacs Lisp source files not generated from TIT dictionaries are
135 # distributed as is. So, hitting this target means that ${srcdir} is
136 # different from the current directory. In this case, we just make
139 @LN_S@
${srcdir}/$@
$@
140 @LN_S@
${srcdir}/$@c
$@c
142 leim-list.el
: ${SUBDIRS} ${WORLD}
143 ${RUN-EMACS
} -l
${buildlisppath}/international
/quail \
144 --eval
"(update-leim-list-file \".\")"
147 if
[ x
`(cd ${INSTALLDIR}; /bin/pwd)` != x
`(/bin/pwd)` ] ; then \
148 rm -rf
${INSTALLDIR}/quail
${INSTALLDIR}/skk
; \
149 echo
"Copying leim/quail/* and leim/skk/* to ${INSTALLDIR} ..." ; \
150 tar -chf
- ${SUBDIRS} |
(cd
${INSTALLDIR}; umask
0; tar -xvf
-) ; \
152 ${RUN-EMACS
} -l
${buildlisppath}/international
/quail \
153 --eval
"(update-leim-list-file \"${INSTALLDIR}\")"
156 ELC
=`echo ${TIT} | sed 's/\.el/.elc/g'`; \
157 rm -f
${TIT} $$ELC leim-list.el
159 distclean maintainer-clean
:
160 if
test -f stamp-subdir
; then
rm -rf
${SUBDIRS} stamp-subdir
; fi