Fix etags reading of compressed files
[emacs.git] / leim / Makefile.in
blob2ec03db49b72769c869e5cd673370f9ad1d62a6e
1 ### @configure_input@
3 # Copyright (C) 1997-2015 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 # 'make' verbosity.
33 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
35 AM_V_GEN = $(am__v_GEN_@AM_V@)
36 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
37 am__v_GEN_0 = @echo " GEN " $@;
38 am__v_GEN_1 =
40 AM_V_at = $(am__v_at_@AM_V@)
41 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
42 am__v_at_0 = @
43 am__v_at_1 =
45 # Prevent any settings in the user environment causing problems.
46 unexport EMACSDATA EMACSDOC EMACSPATH
48 # Which Emacs to use to convert TIT files to Emacs Lisp files,
49 # and generate the file leim-list.el.
50 EMACS = ../src/emacs${EXEEXT}
52 # How to run Emacs.
53 # Prevent any setting of EMACSLOADPATH in user environment causing problems.
54 RUN_EMACS = EMACSLOADPATH= '$(EMACS)' -batch --no-site-file --no-site-lisp
56 MKDIR_P = @MKDIR_P@
58 # Files generated from TIT dictionaries for Chinese GB character set.
59 TIT_GB=\
60 ${leimdir}/quail/CCDOSPY.el \
61 ${leimdir}/quail/Punct.el \
62 ${leimdir}/quail/QJ.el \
63 ${leimdir}/quail/SW.el \
64 ${leimdir}/quail/TONEPY.el
66 # Files generated from TIT dictionaries for Chinese BIG5 character set.
67 TIT_BIG5=\
68 ${leimdir}/quail/4Corner.el \
69 ${leimdir}/quail/ARRAY30.el \
70 ${leimdir}/quail/ECDICT.el \
71 ${leimdir}/quail/ETZY.el \
72 ${leimdir}/quail/Punct-b5.el \
73 ${leimdir}/quail/PY-b5.el \
74 ${leimdir}/quail/QJ-b5.el \
75 ${leimdir}/quail/ZOZY.el
77 MISC= \
78 ${leimdir}/quail/tsang-b5.el \
79 ${leimdir}/quail/quick-b5.el \
80 ${leimdir}/quail/tsang-cns.el \
81 ${leimdir}/quail/quick-cns.el \
82 ${leimdir}/quail/PY.el \
83 ${leimdir}/quail/ZIRANMA.el \
84 ${leimdir}/quail/CTLau.el \
85 ${leimdir}/quail/CTLau-b5.el
87 ## All the generated .el files.
88 TIT_MISC = ${TIT_GB} ${TIT_BIG5} ${MISC}
91 all: ${leimdir}/leim-list.el ${leimdir}/ja-dic/ja-dic.el
92 .PHONY: all
95 ## Ensure the output directory exists.
96 ${TIT_MISC}: | ${leimdir}/quail
98 ${leimdir}/quail ${leimdir}/ja-dic:
99 ${MKDIR_P} $@
102 ## All of TIT_GB and TIT_BIG5.
103 ${leimdir}/quail/%.el: ${srcdir}/CXTERM-DIC/%.tit
104 $(AM_V_GEN)${RUN_EMACS} -l titdic-cnv \
105 -f batch-titdic-convert -dir ${leimdir}/quail $<
108 misc_convert = $(AM_V_GEN)${RUN_EMACS} \
109 -l titdic-cnv -f batch-miscdic-convert -dir ${leimdir}/quail
111 ## CTLau.el, CTLau-b5.el.
112 ${leimdir}/quail/CT%.el: ${srcdir}/MISC-DIC/CT%.html
113 ${misc_convert} $<
115 ${leimdir}/quail/PY.el: ${srcdir}/MISC-DIC/pinyin.map
116 ${misc_convert} $<
118 ${leimdir}/quail/ZIRANMA.el: ${srcdir}/MISC-DIC/ziranma.cin
119 ${misc_convert} $<
121 ## Processing cangjie-table.b5 and cangjie-table.cns generates two files
122 ## in each case.
123 ${leimdir}/quail/tsang-%.el ${leimdir}/quail/quick-%.el: ${srcdir}/MISC-DIC/cangjie-table.%
124 ${misc_convert} $<
127 .PHONY: leim-list.el
128 leim-list.el: ${leimdir}/leim-list.el
130 ${leimdir}/leim-list.el: ${srcdir}/leim-ext.el ${TIT_MISC}
131 $(AM_V_GEN)rm -f $@
132 $(AM_V_at)${RUN_EMACS} -l international/quail \
133 --eval "(update-leim-list-file (unmsys--file-name \"${leimdir}\"))"
134 $(AM_V_at)sed -n -e '/^[^;]/p' -e 's/^;\(;*\)inc /;\1 /p' < $< >> $@
137 ${leimdir}/ja-dic/ja-dic.el: | $(leimdir)/ja-dic
139 ${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L
140 $(AM_V_GEN)$(RUN_EMACS) -batch -l ja-dic-cnv \
141 -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" "$<"
144 .PHONY: bootstrap-clean distclean maintainer-clean extraclean
146 bootstrap-clean:
147 rm -f ${TIT_MISC} ${leimdir}/leim-list.el
149 distclean:
150 rm -f Makefile
152 maintainer-clean: distclean bootstrap-clean
154 ## We do not delete ja-dic, even in a bootstrap, because it rarely
155 ## changes and is slow to regenerate.
156 extraclean:
157 rm -rf ${leimdir}/ja-dic
159 ### Makefile.in ends here