55092
|
1 # -*- Makefile -*- for leim subdirectory in GNU Emacs on the Microsoft W32 API.
|
79728
|
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
67657
|
3 # Free Software Foundation, Inc.
|
79728
|
4 # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
|
5 # 2006, 2007
|
67657
|
6 # National Institute of Advanced Industrial Science and Technology (AIST)
|
|
7 # Registration Number H14PRO021
|
35930
|
8
|
|
9 # This file is part of GNU Emacs.
|
|
10
|
94711
|
11 # GNU Emacs is free software: you can redistribute it and/or modify
|
35930
|
12 # it under the terms of the GNU General Public License as published by
|
94711
|
13 # the Free Software Foundation, either version 3 of the License, or
|
|
14 # (at your option) any later version.
|
|
15
|
35930
|
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.
|
94711
|
20
|
35930
|
21 # You should have received a copy of the GNU General Public License
|
94711
|
22 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
35930
|
24
|
|
25 srcdir=.
|
|
26
|
|
27 # Where to install LEIM files.
|
|
28 INSTALLDIR=$(INSTALL_DIR)/leim
|
|
29
|
87595
|
30 # On IBM RS6000, double-dot gets screwed up.
|
35930
|
31 dot = .
|
|
32
|
|
33 # Which Emacs to use to convert TIT files to Emacs Lisp files,
|
|
34 # byte-compile Emacs Lisp files, and generate the file leim-list.el.
|
|
35 BUILT_EMACS = $(THISDIR)/$(dot)$(dot)/src/$(BLD)/emacs.exe
|
|
36
|
|
37 buildlisppath=$(CURDIR)/$(dot)$(dot)/lisp
|
|
38
|
|
39 # How to run Emacs.
|
|
40 RUN_EMACS = "$(BUILT_EMACS)" -batch --no-init-file --no-site-file --multibyte
|
|
41
|
37383
|
42 # Set EMACSLOADPATH correctly (already defined in environment).
|
|
43 EMACSLOADPATH=$(buildlisppath)
|
|
44
|
35930
|
45 # Subdirectories to be made if $(srcdir) is different from the current
|
|
46 # directory.
|
|
47 SUBDIRS=quail
|
|
48
|
|
49 # Files generated from TIT dictionaries for Chinese GB character set.
|
|
50 TIT_GB=\
|
|
51 quail/CCDOSPY.elc \
|
|
52 quail/Punct.elc \
|
|
53 quail/QJ.elc \
|
|
54 quail/SW.elc \
|
37176
|
55 quail/TONEPY.elc
|
35930
|
56
|
|
57 # Files generated from TIT dictionaries for Chinese BIG5 character set.
|
|
58 TIT_BIG5=\
|
|
59 quail/4Corner.elc \
|
|
60 quail/ARRAY30.elc \
|
|
61 quail/ECDICT.elc \
|
|
62 quail/ETZY.elc \
|
|
63 quail/Punct-b5.elc \
|
|
64 quail/PY-b5.elc \
|
|
65 quail/QJ-b5.elc \
|
|
66 quail/ZOZY.elc
|
|
67
|
|
68 CHINESE_TIT=$(TIT_GB) $(TIT_BIG5)
|
|
69
|
|
70 NON_TIT_GB=$(srcdir)/quail/py-punct.elc
|
|
71
|
37176
|
72 NON_TIT_BIG5=$(srcdir)/quail/pypunct-b5.elc
|
35930
|
73
|
37176
|
74 CHINESE_NON_TIT=$(NON_TIT_GB) $(NON_TIT_BIG5)
|
35930
|
75
|
|
76 CHINESE_GB=$(TIT_GB) $(NON_TIT_GB)
|
|
77
|
49600
|
78 CHINESE_BIG5=$(TIT_BIG5) $(NON_TIT_BIG5)
|
35930
|
79
|
|
80 JAPANESE=$(srcdir)/quail/japanese.elc $(srcdir)/ja-dic/ja-dic.elc
|
|
81
|
|
82 KOREAN= $(srcdir)/quail/hangul.elc \
|
|
83 $(srcdir)/quail/hanja.elc \
|
37176
|
84 $(srcdir)/quail/hanja3.elc \
|
35930
|
85 $(srcdir)/quail/hanja-jis.elc \
|
|
86 $(srcdir)/quail/symbol-ksc.elc
|
|
87
|
|
88 THAI=$(srcdir)/quail/thai.elc
|
|
89
|
43705
223fa5122806
* Makefile.in (VIETNAMESE), makefile.nt (VIETNAMESE), makefile.w32-in
Werner LEMBERG <wl@gnu.org>
diff
changeset
|
90 VIETNAMESE=$(srcdir)/quail/viqr.elc $(srcdir)/quail/vntelex.elc
|
35930
|
91
|
|
92 LAO=$(srcdir)/quail/lao.elc $(srcdir)/quail/lrt.elc
|
|
93
|
41635
|
94 INDIAN=$(srcdir)/quail/indian.elc
|
35930
|
95
|
|
96 TIBETAN=$(srcdir)/quail/tibetan.elc
|
|
97
|
|
98 LATIN= $(srcdir)/quail/latin-pre.elc \
|
|
99 $(srcdir)/quail/latin-post.elc \
|
|
100 $(srcdir)/quail/latin-alt.elc \
|
48798
|
101 $(srcdir)/quail/latin-ltx.elc \
|
|
102 $(srcdir)/quail/welsh.elc
|
|
103
|
|
104 UNICODE=$(srcdir)/quail/sgml-input.elc \
|
|
105 $(srcdir)/quail/rfc1345.elc \
|
|
106 $(srcdir)/quail/uni-input.elc
|
35930
|
107
|
|
108 SLAVIC= \
|
|
109 $(srcdir)/quail/czech.elc \
|
49040
|
110 $(srcdir)/quail/croatian.elc \
|
35930
|
111 $(srcdir)/quail/slovak.elc
|
|
112
|
|
113 GREEK=$(srcdir)/quail/greek.elc
|
|
114
|
|
115 RUSSIAN=$(srcdir)/quail/cyrillic.elc $(srcdir)/quail/cyril-jis.elc
|
|
116
|
|
117 MISC= \
|
96214
|
118 $(srcdir)/quail/arabic.elc \
|
35930
|
119 $(srcdir)/quail/ethiopic.elc \
|
|
120 $(srcdir)/quail/ipa.elc \
|
48798
|
121 $(srcdir)/quail/hebrew.elc \
|
74444
|
122 $(srcdir)/quail/georgian.elc \
|
|
123 $(srcdir)/quail/sisheng.elc
|
35930
|
124
|
37176
|
125 MISC_DIC=\
|
|
126 quail/tsang-b5.elc \
|
|
127 quail/quick-b5.elc \
|
|
128 quail/tsang-cns.elc \
|
|
129 quail/quick-cns.elc \
|
|
130 quail/PY.elc \
|
37974
|
131 quail/ZIRANMA.elc \
|
|
132 quail/CTLau.elc \
|
|
133 quail/CTLau-b5.elc
|
37176
|
134
|
|
135 CHINESE=$(CHINESE_GB) $(CHINESE_BIG5)
|
35930
|
136 EASTASIA=$(CHINESE) $(JAPANESE) $(KOREAN)
|
|
137 ASIA=$(EASTASIA) $(THAI) $(VIETNAMESE) $(LAO) $(INDIAN) $(TIBETAN)
|
|
138 EUROPEAN=$(LATIN) $(SLAVIC) $(GREEK) $(RUSSIAN)
|
48798
|
139 WORLD=$(ASIA) $(EUROPEAN) $(MISC) $(MISC_DIC) $(UNICODE)
|
35930
|
140
|
|
141 TIT=$(CHINESE_TIT)
|
|
142 NON_TIT=$(CHINESE_NON_TIT) $(JAPANESE) $(KOREAN) $(EUROPEAN) $(MISC)
|
|
143
|
43228
|
144 .SUFFIXES: .elc .el
|
|
145
|
|
146 .el.elc:
|
|
147 $(RUN_EMACS) -f batch-byte-compile $<
|
|
148
|
54216
|
149 all: $(BUILT_EMACS) $(SUBDIRS) $(WORLD) leim-list.el
|
35930
|
150
|
|
151 # To ensure that we can run Emacs. This target is ignored (never
|
|
152 # being hit) if a user changes default value of EMACS.
|
|
153 $(dot)$(dot)/src/emacs:
|
|
154 cd ../src; $(MAKE) $(MFLAGS) emacs
|
|
155
|
|
156 $(SUBDIRS):
|
|
157 mkdir "$@"
|
|
158 echo stamp>stamp-subdir
|
|
159
|
37176
|
160 # The rules which generate $(TIT) and ${MISC_DIC) files create them all
|
|
161 # in one go. So we need to prevent parallel execution for that target,
|
|
162 # otherwise Emacs complains about files being locked. .NOTPARALLEL is
|
|
163 # for GNU Make, .NO_PARALLEL is for other Make's.
|
|
164 .NOTPARALLEL: $(TIT) $(MISC_DIC)
|
|
165
|
|
166 .NO_PARALLEL: $(TIT) $(MISC_DIC)
|
|
167
|
35930
|
168 # Rule to generate quail/*.el from CXTERM-DIC/*.tit.
|
67641
8fdbccfbe833
($(TIT), leim-list.el): Warn that parts of commands enclosed in $(ARGQUOTE)s
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
169 #
|
8fdbccfbe833
($(TIT), leim-list.el): Warn that parts of commands enclosed in $(ARGQUOTE)s
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
170 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
|
8fdbccfbe833
($(TIT), leim-list.el): Warn that parts of commands enclosed in $(ARGQUOTE)s
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
171 # this can break with GNU Make 3.81 and later if sh.exe is used.
|
43228
|
172 $(TIT):
|
37383
|
173 $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \
|
37176
|
174 --eval $(ARGQUOTE)(batch-titdic-convert t)$(ARGQUOTE) \
|
|
175 -dir quail $(srcdir)/CXTERM-DIC
|
37383
|
176 $(RUN_EMACS) -l $(buildlisppath)/international/quail \
|
35930
|
177 -f batch-byte-compile $(TIT:.elc=.el)
|
|
178
|
37176
|
179 # Rule to generate quail/*.el from MISC_DIC/*.tit.
|
43228
|
180 $(MISC_DIC):
|
37383
|
181 $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \
|
37176
|
182 -f batch-miscdic-convert -dir quail $(srcdir)/MISC-DIC
|
37383
|
183 $(RUN_EMACS) -l $(buildlisppath)/international/quail \
|
37176
|
184 -f batch-byte-compile $(MISC_DIC:.elc=.el)
|
|
185
|
67641
8fdbccfbe833
($(TIT), leim-list.el): Warn that parts of commands enclosed in $(ARGQUOTE)s
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
186 #
|
74513
|
187 # WARNING: Do NOT split the parts inside $(ARGQUOTE)s into multiple lines as
|
67641
8fdbccfbe833
($(TIT), leim-list.el): Warn that parts of commands enclosed in $(ARGQUOTE)s
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
188 # this can break with GNU Make 3.81 and later if sh.exe is used.
|
74513
|
189 leim-list.el: $(SUBDIRS) $(WORLD) $(srcdir)/leim-ext.el
|
95499
|
190 - $(DEL) leim-list.el
|
37383
|
191 $(RUN_EMACS) -l $(buildlisppath)/international/quail \
|
35930
|
192 --eval $(ARGQUOTE)(update-leim-list-file $(DQUOTE).$(DQUOTE))$(ARGQUOTE)
|
74513
|
193 $(RUN_EMACS) --eval $(ARGQUOTE)(w32-append-code-lines $(DQUOTE)$@$(DQUOTE) $(DQUOTE)$(srcdir)/leim-ext.el$(DQUOTE))$(ARGQUOTE)
|
35930
|
194
|
|
195 install: all
|
|
196 - mkdir "$(INSTALLDIR)"
|
|
197 - $(DEL) same-dir.tst
|
|
198 - $(DEL) $(INSTALL_DIR)/same-dir.tst
|
|
199 echo SameDirTest > $(INSTALL_DIR)/same-dir.tst
|
|
200 $(IFNOTSAMEDIR) $(CP) leim-list.el $(INSTALLDIR) $(ENDIF)
|
|
201 $(IFNOTSAMEDIR) $(CP_DIR) quail $(INSTALLDIR) $(ENDIF)
|
|
202 $(IFNOTSAMEDIR) $(CP_DIR) ja-dic $(INSTALLDIR) $(ENDIF)
|
|
203 - $(DEL) $(INSTALL_DIR)/same-dir.tst
|
|
204
|
|
205 clean mostlyclean:
|
|
206 - $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
|
37176
|
207 - $(FOREACH) $(MISC_DIC) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
|
35930
|
208 - $(FOREACH) $(TIT:.elc=.el) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
|
37176
|
209 - $(FOREACH) $(MISC_DIC:.elc=.el) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
|
35930
|
210 - $(DEL) leim-list.el
|
96109
|
211 - $(DEL) leim-list.el~
|
35930
|
212
|
62996
|
213 distclean: clean
|
35930
|
214 - $(DEL) stamp-subdir
|
96109
|
215 - $(DEL) makefile
|
52401
|
216
|
54216
|
217 maintainer-clean: distclean
|
|
218 - $(FOREACH) $(WORLD) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
|
62996
|
219
|
78178
|
220 # We used to delete *~ here, but that might inadvertently remove
|
|
221 # precious files if it happens to match their short 8+3 aliases.
|
62996
|
222 extraclean: maintainer-clean
|
78178
|
223 - $(FOREACH) *.el~ "#*" $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
|