1 # Makefile for leim subdirectory in GNU Emacs on the Microsoft W32 API.
2 # Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
3 # Licensed to the Free Software Foundation.
5 # This file is part of GNU Emacs.
7 # GNU Emacs is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs; see the file COPYING. If not, write to the
19 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 # Boston, MA 02111-1307, USA.
23 # Sets up the system dependent macros.
25 !include ..\nt\makefile.def
29 # Where to install LEIM files.
30 INSTALLDIR=$(INSTALL_DIR)\leim
32 # On Xenix and the IBM RS6000, double-dot gets screwed up.
35 # Which Emacs to use to convert TIT files to Emacs Lisp files,
36 # byte-compile Emacs Lisp files, and generate the file leim-list.el.
37 BUILT_EMACS = $(dot)$(dot)\src\$(BLD)\emacs.exe
39 buildlisppath=$(dot)$(dot)/lisp
42 RUN_EMACS = $(BUILT_EMACS) -batch --no-init-file --no-site-file --multibyte
44 # Subdirectories to be made if $(srcdir) is different from the current
48 # Files generated from TIT dictionaries for Chinese GB character set.
59 # Files generated from TIT dictionaries for Chinese BIG5 character set.
71 CHINESE_TIT=$(TIT_GB) $(TIT_BIG5)
73 NON_TIT_GB=$(srcdir)/quail/py-punct.elc
75 NON_TIT_BIG5=$(srcdir)/quail/quick-b5.elc $(srcdir)/quail/tsang-b5.elc \
76 $(srcdir)/quail/pypunct-b5.elc
78 NON_TIT_CNS=$(srcdir)/quail/quick-cns.elc $(srcdir)/quail/tsang-cns.elc
80 CHINESE_NON_TIT=$(NON_TIT_GB) $(NON_TIT_BIG5) $(NON_TIT_CNS)
82 CHINESE_GB=$(TIT_GB) $(NON_TIT_GB)
84 CHINESE_BIG5=$(TIT_BIG5) $(NON_TIT_BIG5)
86 CHINESE_CNS=$(NON_TIT_CNS)
88 JAPANESE=$(srcdir)/quail/japanese.elc $(srcdir)/ja-dic/ja-dic.elc
90 KOREAN= $(srcdir)/quail/hangul.elc \
91 $(srcdir)/quail/hangul3.elc \
92 $(srcdir)/quail/hanja.elc \
93 $(srcdir)/quail/hanja-jis.elc \
94 $(srcdir)/quail/symbol-ksc.elc
96 THAI=$(srcdir)/quail/thai.elc
98 VIETNAMESE=$(srcdir)/quail/viqr.elc
100 LAO=$(srcdir)/quail/lao.elc $(srcdir)/quail/lrt.elc
102 INDIAN=$(srcdir)/quail/devanagari.elc
104 TIBETAN=$(srcdir)/quail/tibetan.elc
106 LATIN=$(srcdir)/quail/latin-pre.elc $(srcdir)/quail/latin-post.elc
109 $(srcdir)/quail/czech.elc \
110 $(srcdir)/quail/slovak.elc
112 GREEK=$(srcdir)/quail/greek.elc
114 RUSSIAN=$(srcdir)/quail/cyrillic.elc $(srcdir)/quail/cyril-jis.elc
117 $(srcdir)/quail/ethiopic.elc \
118 $(srcdir)/quail/ipa.elc \
119 $(srcdir)/quail/hebrew.elc
121 CHINESE=$(CHINESE_GB) $(CHINESE_BIG5) $(CHINESE_CNS)
122 EASTASIA=$(CHINESE) $(JAPANESE) $(KOREAN)
123 ASIA=$(EASTASIA) $(THAI) $(VIETNAMESE) $(LAO) $(INDIAN) $(TIBETAN)
124 EUROPEAN=$(LATIN) $(SLAVIC) $(GREEK) $(RUSSIAN)
125 WORLD=$(ASIA) $(EUROPEAN) $(MISC)
128 NON_TIT=$(CHINESE_NON_TIT) $(JAPANESE) $(KOREAN) $(EUROPEAN) $(MISC)
130 all: $(BUILT_EMACS) $(SUBDIRS) $(TIT) leim-list.el
132 # To ensure that we can run Emacs. This target is ignored (never
133 # being hit) if a user changes default value of EMACS.
134 $(dot)$(dot)/src/emacs:
135 cd ../src; $(MAKE) $(MFLAGS) emacs
139 echo stamp>stamp-subdir
141 # Rule to generate quail/*.el from CXTERM-DIC/*.tit.
143 set EMACSLOADPATH=$(buildlisppath)
144 $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \
145 --eval "(batch-titdic-convert t)" -dir quail $(srcdir)/CXTERM-DIC
146 $(RUN_EMACS) -l $(buildlisppath)/international/quail \
147 -f batch-byte-compile $(TIT)
152 set EMACSLOADPATH=$(buildlisppath)
153 $(RUN_EMACS) -f batch-byte-compile $<
155 leim-list.el: $(SUBDIRS) $(WORLD)
156 set EMACSLOADPATH=$(buildlisppath)
157 $(RUN_EMACS) -l $(buildlisppath)/international/quail \
158 --eval "(update-leim-list-file \".\")"
161 - mkdir $(INSTALLDIR)
162 - $(DEL) same-dir.tst
163 - $(DEL) $(INSTALLDIR)\same-dir.tst
164 echo SameDirTest > $(INSTALLDIR)\same-dir.tst
165 if not exist same-dir.tst $(CP) leim-list.el $(INSTALLDIR)
166 if not exist same-dir.tst $(CP_DIR) quail $(INSTALLDIR)\quail
167 if not exist same-dir.tst $(CP_DIR) ja-dic $(INSTALLDIR)\ja-dic
168 - $(DEL) $(INSTALLDIR)\same-dir.tst
171 for %%f in ($(TIT:/=\)) do $(DEL) %%fc
172 for %%f in ($(TIT:/=\)) do $(DEL) %%f
175 distclean maintainer-clean:
176 if exist stamp-subdir $(DELTREE) $(SUBDIRS)