(autoloads, custom-deps): Warn that parts of commands enclosed in $(ARGQUOTE)s
[bpt/emacs.git] / leim / makefile.w32-in
CommitLineData
bd6766d3 1# -*- Makefile -*- for leim subdirectory in GNU Emacs on the Microsoft W32 API.
48d67035 2# Copyright (C) 1997, 2004 Electrotechnical Laboratory, JAPAN.
385a3b9e
EZ
3# Licensed to the Free Software Foundation.
4# Copyright (C) 2005, Free Software Foundation, Inc.
bc4016af
AI
5
6# This file is part of GNU Emacs.
7
8# GNU Emacs is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2, or (at your option)
11# any later version.
12#
13# GNU Emacs is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with GNU Emacs; see the file COPYING. If not, write to the
364c38d3
LK
20# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21# Boston, MA 02110-1301, USA.
bc4016af
AI
22
23srcdir=.
24
25# Where to install LEIM files.
26INSTALLDIR=$(INSTALL_DIR)/leim
27
28# On Xenix and the IBM RS6000, double-dot gets screwed up.
29dot = .
30
31# Which Emacs to use to convert TIT files to Emacs Lisp files,
32# byte-compile Emacs Lisp files, and generate the file leim-list.el.
33BUILT_EMACS = $(THISDIR)/$(dot)$(dot)/src/$(BLD)/emacs.exe
34
35buildlisppath=$(CURDIR)/$(dot)$(dot)/lisp
36
37# How to run Emacs.
38RUN_EMACS = "$(BUILT_EMACS)" -batch --no-init-file --no-site-file --multibyte
39
9cbff816
AI
40# Set EMACSLOADPATH correctly (already defined in environment).
41EMACSLOADPATH=$(buildlisppath)
42
bc4016af
AI
43# Subdirectories to be made if $(srcdir) is different from the current
44# directory.
45SUBDIRS=quail
46
47# Files generated from TIT dictionaries for Chinese GB character set.
48TIT_GB=\
bc4016af
AI
49 quail/CCDOSPY.elc \
50 quail/Punct.elc \
bc4016af
AI
51 quail/QJ.elc \
52 quail/SW.elc \
4c1dadb1 53 quail/TONEPY.elc
bc4016af
AI
54
55# Files generated from TIT dictionaries for Chinese BIG5 character set.
56TIT_BIG5=\
57 quail/4Corner.elc \
58 quail/ARRAY30.elc \
bc4016af
AI
59 quail/ECDICT.elc \
60 quail/ETZY.elc \
61 quail/Punct-b5.elc \
62 quail/PY-b5.elc \
63 quail/QJ-b5.elc \
64 quail/ZOZY.elc
65
66CHINESE_TIT=$(TIT_GB) $(TIT_BIG5)
67
68NON_TIT_GB=$(srcdir)/quail/py-punct.elc
69
4c1dadb1 70NON_TIT_BIG5=$(srcdir)/quail/pypunct-b5.elc
bc4016af 71
4c1dadb1 72CHINESE_NON_TIT=$(NON_TIT_GB) $(NON_TIT_BIG5)
bc4016af
AI
73
74CHINESE_GB=$(TIT_GB) $(NON_TIT_GB)
75
177c0ea7 76CHINESE_BIG5=$(TIT_BIG5) $(NON_TIT_BIG5)
bc4016af 77
bc4016af
AI
78JAPANESE=$(srcdir)/quail/japanese.elc $(srcdir)/ja-dic/ja-dic.elc
79
80KOREAN= $(srcdir)/quail/hangul.elc \
81 $(srcdir)/quail/hangul3.elc \
82 $(srcdir)/quail/hanja.elc \
4c1dadb1 83 $(srcdir)/quail/hanja3.elc \
bc4016af
AI
84 $(srcdir)/quail/hanja-jis.elc \
85 $(srcdir)/quail/symbol-ksc.elc
86
87THAI=$(srcdir)/quail/thai.elc
88
54679108 89VIETNAMESE=$(srcdir)/quail/viqr.elc $(srcdir)/quail/vntelex.elc
bc4016af
AI
90
91LAO=$(srcdir)/quail/lao.elc $(srcdir)/quail/lrt.elc
92
ea17b6e1 93INDIAN=$(srcdir)/quail/indian.elc
bc4016af
AI
94
95TIBETAN=$(srcdir)/quail/tibetan.elc
96
97LATIN= $(srcdir)/quail/latin-pre.elc \
98 $(srcdir)/quail/latin-post.elc \
99 $(srcdir)/quail/latin-alt.elc \
abceb4ac
JB
100 $(srcdir)/quail/latin-ltx.elc \
101 $(srcdir)/quail/welsh.elc
102
103UNICODE=$(srcdir)/quail/sgml-input.elc \
104 $(srcdir)/quail/rfc1345.elc \
105 $(srcdir)/quail/uni-input.elc
bc4016af
AI
106
107SLAVIC= \
108 $(srcdir)/quail/czech.elc \
98e99f6e 109 $(srcdir)/quail/croatian.elc \
bc4016af
AI
110 $(srcdir)/quail/slovak.elc
111
112GREEK=$(srcdir)/quail/greek.elc
113
114RUSSIAN=$(srcdir)/quail/cyrillic.elc $(srcdir)/quail/cyril-jis.elc
115
116MISC= \
117 $(srcdir)/quail/ethiopic.elc \
118 $(srcdir)/quail/ipa.elc \
abceb4ac
JB
119 $(srcdir)/quail/hebrew.elc \
120 $(srcdir)/quail/georgian.elc
bc4016af 121
4c1dadb1
AI
122MISC_DIC=\
123 quail/tsang-b5.elc \
124 quail/quick-b5.elc \
125 quail/tsang-cns.elc \
126 quail/quick-cns.elc \
127 quail/PY.elc \
36d24e3c
AI
128 quail/ZIRANMA.elc \
129 quail/CTLau.elc \
130 quail/CTLau-b5.elc
4c1dadb1
AI
131
132CHINESE=$(CHINESE_GB) $(CHINESE_BIG5)
bc4016af
AI
133EASTASIA=$(CHINESE) $(JAPANESE) $(KOREAN)
134ASIA=$(EASTASIA) $(THAI) $(VIETNAMESE) $(LAO) $(INDIAN) $(TIBETAN)
135EUROPEAN=$(LATIN) $(SLAVIC) $(GREEK) $(RUSSIAN)
abceb4ac 136WORLD=$(ASIA) $(EUROPEAN) $(MISC) $(MISC_DIC) $(UNICODE)
bc4016af
AI
137
138TIT=$(CHINESE_TIT)
139NON_TIT=$(CHINESE_NON_TIT) $(JAPANESE) $(KOREAN) $(EUROPEAN) $(MISC)
140
5c196f29
AI
141.SUFFIXES: .elc .el
142
143.el.elc:
144 $(RUN_EMACS) -f batch-byte-compile $<
145
948b7d16 146all: $(BUILT_EMACS) $(SUBDIRS) $(WORLD) leim-list.el
bc4016af
AI
147
148# To ensure that we can run Emacs. This target is ignored (never
149# being hit) if a user changes default value of EMACS.
150$(dot)$(dot)/src/emacs:
151 cd ../src; $(MAKE) $(MFLAGS) emacs
152
153$(SUBDIRS):
154 mkdir "$@"
155 echo stamp>stamp-subdir
156
4c1dadb1
AI
157# The rules which generate $(TIT) and ${MISC_DIC) files create them all
158# in one go. So we need to prevent parallel execution for that target,
159# otherwise Emacs complains about files being locked. .NOTPARALLEL is
160# for GNU Make, .NO_PARALLEL is for other Make's.
161.NOTPARALLEL: $(TIT) $(MISC_DIC)
162
163.NO_PARALLEL: $(TIT) $(MISC_DIC)
164
bc4016af 165# Rule to generate quail/*.el from CXTERM-DIC/*.tit.
5c196f29 166$(TIT):
9cbff816 167 $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \
4c1dadb1
AI
168 --eval $(ARGQUOTE)(batch-titdic-convert t)$(ARGQUOTE) \
169 -dir quail $(srcdir)/CXTERM-DIC
9cbff816 170 $(RUN_EMACS) -l $(buildlisppath)/international/quail \
bc4016af
AI
171 -f batch-byte-compile $(TIT:.elc=.el)
172
4c1dadb1 173# Rule to generate quail/*.el from MISC_DIC/*.tit.
5c196f29 174$(MISC_DIC):
9cbff816 175 $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \
4c1dadb1 176 -f batch-miscdic-convert -dir quail $(srcdir)/MISC-DIC
9cbff816 177 $(RUN_EMACS) -l $(buildlisppath)/international/quail \
4c1dadb1
AI
178 -f batch-byte-compile $(MISC_DIC:.elc=.el)
179
bc4016af 180leim-list.el: $(SUBDIRS) $(WORLD)
9cbff816 181 $(RUN_EMACS) -l $(buildlisppath)/international/quail \
bc4016af
AI
182 --eval $(ARGQUOTE)(update-leim-list-file $(DQUOTE).$(DQUOTE))$(ARGQUOTE)
183
184install: all
185 - mkdir "$(INSTALLDIR)"
186 - $(DEL) same-dir.tst
187 - $(DEL) $(INSTALL_DIR)/same-dir.tst
188 echo SameDirTest > $(INSTALL_DIR)/same-dir.tst
189 $(IFNOTSAMEDIR) $(CP) leim-list.el $(INSTALLDIR) $(ENDIF)
190 $(IFNOTSAMEDIR) $(CP_DIR) quail $(INSTALLDIR) $(ENDIF)
191 $(IFNOTSAMEDIR) $(CP_DIR) ja-dic $(INSTALLDIR) $(ENDIF)
192 - $(DEL) $(INSTALL_DIR)/same-dir.tst
193
194clean mostlyclean:
195 - $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
4c1dadb1 196 - $(FOREACH) $(MISC_DIC) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
bc4016af 197 - $(FOREACH) $(TIT:.elc=.el) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
4c1dadb1 198 - $(FOREACH) $(MISC_DIC:.elc=.el) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
bc4016af
AI
199 - $(DEL) leim-list.el
200
385a3b9e 201distclean: clean
28082746 202 - $(DELTREE) $(SUBDIRS)
bc4016af 203 - $(DEL) stamp-subdir
ab5796a9 204
948b7d16
KH
205maintainer-clean: distclean
206 - $(FOREACH) $(WORLD) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
385a3b9e
EZ
207
208extraclean: maintainer-clean
209 - $(FOREACH) *~ "#*" $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)