1 # Makefile for leim subdirectory in GNU Emacs on the Microsoft W32 API.
\r
2 # Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
\r
3 # Licensed to the Free Software Foundation.
\r
5 # This file is part of GNU Emacs.
\r
7 # GNU Emacs is free software; you can redistribute it and/or modify
\r
8 # it under the terms of the GNU General Public License as published by
\r
9 # the Free Software Foundation; either version 2, or (at your option)
\r
10 # any later version.
\r
12 # GNU Emacs is distributed in the hope that it will be useful,
\r
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
15 # GNU General Public License for more details.
\r
17 # You should have received a copy of the GNU General Public License
\r
18 # along with GNU Emacs; see the file COPYING. If not, write to the
\r
19 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
\r
20 # Boston, MA 02111-1307, USA.
\r
24 # Where to install LEIM files.
\r
25 INSTALLDIR=$(INSTALL_DIR)/leim
\r
27 # On Xenix and the IBM RS6000, double-dot gets screwed up.
\r
30 # Which Emacs to use to convert TIT files to Emacs Lisp files,
\r
31 # byte-compile Emacs Lisp files, and generate the file leim-list.el.
\r
32 BUILT_EMACS = $(dot)$(dot)/src/$(BLD)/emacs.exe
\r
34 buildlisppath=$(CURDIR)/$(dot)$(dot)/lisp
\r
37 RUN_EMACS = "$(BUILT_EMACS)" -batch --no-init-file --no-site-file --multibyte
\r
39 # Subdirectories to be made if $(srcdir) is different from the current
\r
43 # Files generated from TIT dictionaries for Chinese GB character set.
\r
54 # Files generated from TIT dictionaries for Chinese BIG5 character set.
\r
61 quail/Punct-b5.elc \
\r
66 CHINESE_TIT=$(TIT_GB) $(TIT_BIG5)
\r
68 NON_TIT_GB=$(srcdir)/quail/py-punct.elc
\r
70 NON_TIT_BIG5=$(srcdir)/quail/quick-b5.elc $(srcdir)/quail/tsang-b5.elc \
\r
71 $(srcdir)/quail/pypunct-b5.elc
\r
73 NON_TIT_CNS=$(srcdir)/quail/quick-cns.elc $(srcdir)/quail/tsang-cns.elc
\r
75 CHINESE_NON_TIT=$(NON_TIT_GB) $(NON_TIT_BIG5) $(NON_TIT_CNS)
\r
77 CHINESE_GB=$(TIT_GB) $(NON_TIT_GB)
\r
79 CHINESE_BIG5=$(TIT_BIG5) $(NON_TIT_BIG5)
\r
81 CHINESE_CNS=$(NON_TIT_CNS)
\r
83 JAPANESE=$(srcdir)/quail/japanese.elc $(srcdir)/ja-dic/ja-dic.elc
\r
85 KOREAN= $(srcdir)/quail/hangul.elc \
\r
86 $(srcdir)/quail/hangul3.elc \
\r
87 $(srcdir)/quail/hanja.elc \
\r
88 $(srcdir)/quail/hanja-jis.elc \
\r
89 $(srcdir)/quail/symbol-ksc.elc
\r
91 THAI=$(srcdir)/quail/thai.elc
\r
93 VIETNAMESE=$(srcdir)/quail/viqr.elc
\r
95 LAO=$(srcdir)/quail/lao.elc $(srcdir)/quail/lrt.elc
\r
97 INDIAN=$(srcdir)/quail/devanagari.elc
\r
99 TIBETAN=$(srcdir)/quail/tibetan.elc
\r
101 LATIN= $(srcdir)/quail/latin-pre.elc \
\r
102 $(srcdir)/quail/latin-post.elc \
\r
103 ${srcdir}/quail/latin-alt.elc \
\r
104 ${srcdir}/quail/latin-ltx.elc
\r
107 $(srcdir)/quail/czech.elc \
\r
108 $(srcdir)/quail/slovak.elc
\r
110 GREEK=$(srcdir)/quail/greek.elc
\r
112 RUSSIAN=$(srcdir)/quail/cyrillic.elc $(srcdir)/quail/cyril-jis.elc
\r
115 $(srcdir)/quail/ethiopic.elc \
\r
116 $(srcdir)/quail/ipa.elc \
\r
117 $(srcdir)/quail/hebrew.elc
\r
119 CHINESE=$(CHINESE_GB) $(CHINESE_BIG5) $(CHINESE_CNS)
\r
120 EASTASIA=$(CHINESE) $(JAPANESE) $(KOREAN)
\r
121 ASIA=$(EASTASIA) $(THAI) $(VIETNAMESE) $(LAO) $(INDIAN) $(TIBETAN)
\r
122 EUROPEAN=$(LATIN) $(SLAVIC) $(GREEK) $(RUSSIAN)
\r
123 WORLD=$(ASIA) $(EUROPEAN) $(MISC)
\r
126 NON_TIT=$(CHINESE_NON_TIT) $(JAPANESE) $(KOREAN) $(EUROPEAN) $(MISC)
\r
128 all: $(BUILT_EMACS) $(SUBDIRS) $(TIT) leim-list.el
\r
130 # To ensure that we can run Emacs. This target is ignored (never
\r
131 # being hit) if a user changes default value of EMACS.
\r
132 $(dot)$(dot)/src/emacs:
\r
133 cd ../src; $(MAKE) $(MFLAGS) emacs
\r
137 echo stamp>stamp-subdir
\r
139 # Rule to generate quail/*.el from CXTERM-DIC/*.tit.
\r
141 set EMACSLOADPATH=$(buildlisppath)
\r
142 $(SETLOADPATH) $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \
\r
143 --eval $(ARGQUOTE)(batch-titdic-convert t)$(ARGQUOTE) -dir quail $(srcdir)/CXTERM-DIC
\r
144 $(SETLOADPATH) $(RUN_EMACS) -l $(buildlisppath)/international/quail \
\r
145 -f batch-byte-compile $(TIT:.elc=.el)
\r
147 .SUFFIXES: .elc .el
\r
150 set EMACSLOADPATH=$(buildlisppath)
\r
151 $(SETLOADPATH) $(RUN_EMACS) -f batch-byte-compile $<
\r
153 leim-list.el: $(SUBDIRS) $(WORLD)
\r
154 set EMACSLOADPATH=$(buildlisppath)
\r
155 $(SETLOADPATH) $(RUN_EMACS) -l $(buildlisppath)/international/quail \
\r
156 --eval $(ARGQUOTE)(update-leim-list-file $(DQUOTE).$(DQUOTE))$(ARGQUOTE)
\r
159 - mkdir "$(INSTALLDIR)"
\r
160 - $(DEL) same-dir.tst
\r
161 - $(DEL) $(INSTALL_DIR)/same-dir.tst
\r
162 echo SameDirTest > $(INSTALL_DIR)/same-dir.tst
\r
163 $(IFNOTSAMEDIR) $(CP) leim-list.el $(INSTALLDIR) $(ENDIF)
\r
164 $(IFNOTSAMEDIR) $(CP_DIR) quail $(INSTALLDIR) $(ENDIF)
\r
165 $(IFNOTSAMEDIR) $(CP_DIR) ja-dic $(INSTALLDIR) $(ENDIF)
\r
166 - $(DEL) $(INSTALL_DIR)/same-dir.tst
\r
169 - $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
\r
170 - $(FOREACH) $(TIT:.elc=.el) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
\r
171 - $(DEL) leim-list.el
\r
173 distclean maintainer-clean:
\r
174 if exist stamp-subdir $(DELTREE) $(SUBDIRS)
\r
175 - $(DEL) stamp-subdir
\r