; Fix paths in MAINTAINERS
[emacs.git] / leim / Makefile.in
blobf000a93292b1bed526094a805b9da578c86af59e
1 ### @configure_input@
3 # Copyright (C) 1997-2016 Free Software Foundation, Inc.
4 # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
5 # 2006, 2007, 2008, 2009, 2010, 2011
6 # National Institute of Advanced Industrial Science and Technology (AIST)
7 # Registration Number H14PRO021
9 # This file is part of GNU Emacs.
11 # GNU Emacs is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation, either version 3 of the License, or
14 # (at your option) any later version.
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.
21 # You should have received a copy of the GNU General Public License
22 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24 SHELL = @SHELL@
26 # Here are the things that we expect ../configure to edit.
27 srcdir=@srcdir@
29 # Where the generated files go.
30 leimdir = ${srcdir}/../lisp/leim
32 EXEEXT = @EXEEXT@
34 # 'make' verbosity.
35 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
37 AM_V_GEN = $(am__v_GEN_@AM_V@)
38 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
39 am__v_GEN_0 = @echo " GEN " $@;
40 am__v_GEN_1 =
42 AM_V_at = $(am__v_at_@AM_V@)
43 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
44 am__v_at_0 = @
45 am__v_at_1 =
47 # Prevent any settings in the user environment causing problems.
48 unexport EMACSDATA EMACSDOC EMACSPATH
50 # Which Emacs to use to convert TIT files to Emacs Lisp files,
51 # and generate the file leim-list.el.
52 EMACS = ../src/emacs${EXEEXT}
54 # How to run Emacs.
55 # Prevent any setting of EMACSLOADPATH in user environment causing problems.
56 RUN_EMACS = EMACSLOADPATH= '$(EMACS)' -batch --no-site-file --no-site-lisp
58 MKDIR_P = @MKDIR_P@
60 # Files generated from TIT dictionaries for Chinese GB character set.
61 TIT_GB=\
62 ${leimdir}/quail/CCDOSPY.el \
63 ${leimdir}/quail/Punct.el \
64 ${leimdir}/quail/QJ.el \
65 ${leimdir}/quail/SW.el \
66 ${leimdir}/quail/TONEPY.el
68 # Files generated from TIT dictionaries for Chinese BIG5 character set.
69 TIT_BIG5=\
70 ${leimdir}/quail/4Corner.el \
71 ${leimdir}/quail/ARRAY30.el \
72 ${leimdir}/quail/ECDICT.el \
73 ${leimdir}/quail/ETZY.el \
74 ${leimdir}/quail/Punct-b5.el \
75 ${leimdir}/quail/PY-b5.el \
76 ${leimdir}/quail/QJ-b5.el \
77 ${leimdir}/quail/ZOZY.el
79 MISC= \
80 ${leimdir}/quail/tsang-b5.el \
81 ${leimdir}/quail/quick-b5.el \
82 ${leimdir}/quail/tsang-cns.el \
83 ${leimdir}/quail/quick-cns.el \
84 ${leimdir}/quail/PY.el \
85 ${leimdir}/quail/ZIRANMA.el \
86 ${leimdir}/quail/CTLau.el \
87 ${leimdir}/quail/CTLau-b5.el
89 ## All the generated .el files.
90 TIT_MISC = ${TIT_GB} ${TIT_BIG5} ${MISC}
93 all: ${leimdir}/leim-list.el ${leimdir}/ja-dic/ja-dic.el
94 .PHONY: all
97 ## Ensure the output directory exists.
98 ${TIT_MISC}: | ${leimdir}/quail
100 ${leimdir}/quail ${leimdir}/ja-dic:
101 ${MKDIR_P} $@
104 ## All of TIT_GB and TIT_BIG5.
105 ${leimdir}/quail/%.el: ${srcdir}/CXTERM-DIC/%.tit
106 $(AM_V_GEN)${RUN_EMACS} -l titdic-cnv \
107 -f batch-titdic-convert -dir ${leimdir}/quail $<
110 misc_convert = $(AM_V_GEN)${RUN_EMACS} \
111 -l titdic-cnv -f batch-miscdic-convert -dir ${leimdir}/quail
113 ## CTLau.el, CTLau-b5.el.
114 ${leimdir}/quail/CT%.el: ${srcdir}/MISC-DIC/CT%.html
115 ${misc_convert} $<
117 ${leimdir}/quail/PY.el: ${srcdir}/MISC-DIC/pinyin.map
118 ${misc_convert} $<
120 ${leimdir}/quail/ZIRANMA.el: ${srcdir}/MISC-DIC/ziranma.cin
121 ${misc_convert} $<
123 ## Processing cangjie-table.b5 and cangjie-table.cns generates two files
124 ## in each case.
125 ${leimdir}/quail/tsang-%.el ${leimdir}/quail/quick-%.el: ${srcdir}/MISC-DIC/cangjie-table.%
126 ${misc_convert} $<
129 .PHONY: leim-list.el
130 leim-list.el: ${leimdir}/leim-list.el
132 ${leimdir}/leim-list.el: ${srcdir}/leim-ext.el ${TIT_MISC}
133 $(AM_V_GEN)rm -f $@
134 $(AM_V_at)${RUN_EMACS} -l international/quail \
135 --eval "(update-leim-list-file (unmsys--file-name \"${leimdir}\"))"
136 $(AM_V_at)sed -n -e '/^[^;]/p' -e 's/^;\(;*\)inc /;\1 /p' < $< >> $@
139 ${leimdir}/ja-dic/ja-dic.el: | $(leimdir)/ja-dic
141 ${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L
142 $(AM_V_GEN)$(RUN_EMACS) -batch -l ja-dic-cnv \
143 -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" "$<"
146 .PHONY: bootstrap-clean distclean maintainer-clean extraclean
148 bootstrap-clean:
149 rm -f ${TIT_MISC} ${leimdir}/leim-list.el
151 distclean:
152 rm -f Makefile
154 maintainer-clean: distclean bootstrap-clean
156 ## We do not delete ja-dic, even in a bootstrap, because it rarely
157 ## changes and is slow to regenerate.
158 extraclean:
159 rm -rf ${leimdir}/ja-dic
161 ### Makefile.in ends here