handle guile exceptions
[bpt/emacs.git] / leim / Makefile.in
CommitLineData
bbece175 1### @configure_input@
95df8112 2
ba318903 3# Copyright (C) 1997-2014 Free Software Foundation, Inc.
6d344054 4# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
d0981f82 5# 2006, 2007, 2008, 2009, 2010, 2011
eda20bd8
KH
6# National Institute of Advanced Industrial Science and Technology (AIST)
7# Registration Number H14PRO021
24b31c88 8
dadbf673
GM
9# This file is part of GNU Emacs.
10
d3fb0974 11# GNU Emacs is free software: you can redistribute it and/or modify
dadbf673 12# it under the terms of the GNU General Public License as published by
d3fb0974
GM
13# the Free Software Foundation, either version 3 of the License, or
14# (at your option) any later version.
15
dadbf673
GM
16# GNU Emacs is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
d3fb0974 20
dadbf673 21# You should have received a copy of the GNU General Public License
d3fb0974
GM
22# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23
50b13cde 24SHELL = @SHELL@
dadbf673
GM
25
26# Here are the things that we expect ../configure to edit.
dadbf673 27srcdir=@srcdir@
7a7f042f 28
cb6c95a3
GM
29# Where the generated files go.
30leimdir = ${srcdir}/../lisp/leim
31
e088b01d
GM
32# Prevent any settings in the user environment causing problems.
33unexport EMACSDATA EMACSDOC EMACSPATH
34
dadbf673 35# Which Emacs to use to convert TIT files to Emacs Lisp files,
cb6c95a3 36# and generate the file leim-list.el.
935396c0 37EMACS = ../src/emacs
dadbf673 38
dadbf673 39# How to run Emacs.
f952002e
PE
40# Prevent any setting of EMACSLOADPATH in user environment causing problems.
41RUN_EMACS = EMACSLOADPATH= '$(EMACS)' -batch --no-site-file --no-site-lisp
dadbf673 42
35c46c2f 43MKDIR_P = @MKDIR_P@
dadbf673
GM
44
45# Files generated from TIT dictionaries for Chinese GB character set.
68b5f855 46TIT_GB=\
cb6c95a3
GM
47 ${leimdir}/quail/CCDOSPY.el \
48 ${leimdir}/quail/Punct.el \
49 ${leimdir}/quail/QJ.el \
50 ${leimdir}/quail/SW.el \
51 ${leimdir}/quail/TONEPY.el
dadbf673
GM
52
53# Files generated from TIT dictionaries for Chinese BIG5 character set.
acb8e1dd 54TIT_BIG5=\
cb6c95a3
GM
55 ${leimdir}/quail/4Corner.el \
56 ${leimdir}/quail/ARRAY30.el \
57 ${leimdir}/quail/ECDICT.el \
58 ${leimdir}/quail/ETZY.el \
59 ${leimdir}/quail/Punct-b5.el \
60 ${leimdir}/quail/PY-b5.el \
61 ${leimdir}/quail/QJ-b5.el \
62 ${leimdir}/quail/ZOZY.el
dadbf673 63
242a2def 64MISC= \
cb6c95a3
GM
65 ${leimdir}/quail/tsang-b5.el \
66 ${leimdir}/quail/quick-b5.el \
67 ${leimdir}/quail/tsang-cns.el \
68 ${leimdir}/quail/quick-cns.el \
69 ${leimdir}/quail/PY.el \
70 ${leimdir}/quail/ZIRANMA.el \
71 ${leimdir}/quail/CTLau.el \
72 ${leimdir}/quail/CTLau-b5.el
41455956 73
bb175792
GM
74## All the generated .el files.
75TIT_MISC = ${TIT_GB} ${TIT_BIG5} ${MISC}
76
dadbf673 77
cb6c95a3 78all: ${leimdir}/leim-list.el ${leimdir}/ja-dic/ja-dic.el
0aee6912 79.PHONY: all
dadbf673 80
bb175792
GM
81
82## Ensure the output directory exists.
83${TIT_MISC}: | ${leimdir}/quail
84
85${leimdir}/quail ${leimdir}/ja-dic:
86 ${MKDIR_P} $@
87
88
89## All of TIT_GB and TIT_BIG5.
90${leimdir}/quail/%.el: ${srcdir}/CXTERM-DIC/%.tit
bc00793e 91 ${RUN_EMACS} -l titdic-cnv \
bb175792
GM
92 -f batch-titdic-convert -dir ${leimdir}/quail $<
93
94
95misc_convert = ${RUN_EMACS} -l titdic-cnv -f batch-miscdic-convert -dir ${leimdir}/quail
96
97## CTLau.el, CTLau-b5.el.
98${leimdir}/quail/CT%.el: ${srcdir}/MISC-DIC/CT%.html
99 ${misc_convert} $<
100
101${leimdir}/quail/PY.el: ${srcdir}/MISC-DIC/pinyin.map
102 ${misc_convert} $<
103
104${leimdir}/quail/ZIRANMA.el: ${srcdir}/MISC-DIC/ziranma.cin
105 ${misc_convert} $<
106
107## Processing cangjie-table.b5 and cangjie-table.cns generates two files
108## in each case.
109${leimdir}/quail/tsang-%.el ${leimdir}/quail/quick-%.el: ${srcdir}/MISC-DIC/cangjie-table.%
110 ${misc_convert} $<
111
cb6c95a3
GM
112
113.PHONY: leim-list.el
114leim-list.el: ${leimdir}/leim-list.el
115
bb175792 116${leimdir}/leim-list.el: ${srcdir}/leim-ext.el ${TIT_MISC}
cb6c95a3
GM
117 rm -f $@
118 ${RUN_EMACS} -l international/quail \
119 --eval "(update-leim-list-file (unmsys--file-name \"${leimdir}\"))"
bb175792
GM
120 sed -n -e '/^[^;]/p' -e 's/^;\(;*\)inc /;\1 /p' < $< >> $@
121
122
123${leimdir}/ja-dic/ja-dic.el: | $(leimdir)/ja-dic
dadbf673 124
cb6c95a3 125${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L
bc00793e 126 $(RUN_EMACS) -batch -l ja-dic-cnv \
bb175792
GM
127 -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" "$<"
128
982efbcd 129
ccd4fb3d 130.PHONY: bootstrap-clean distclean maintainer-clean extraclean
dadbf673 131
cb6c95a3 132bootstrap-clean:
bb175792 133 rm -f ${TIT_MISC} ${leimdir}/leim-list.el
9200c926 134
cb6c95a3 135distclean:
dadbf673 136 rm -f Makefile
a070e0b7 137
cbeed5af 138maintainer-clean: distclean bootstrap-clean
e6f528ba 139
ccd4fb3d
GM
140## We do not delete ja-dic, even in a bootstrap, because it rarely
141## changes and is slow to regenerate.
142extraclean:
143 rm -rf ${leimdir}/ja-dic
144
cb6c95a3 145### Makefile.in ends here