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=$(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
66 CHINESE_TIT=$(TIT_GB) $(TIT_BIG5)
\r
68 NON_TIT_GB=$(srcdir)/quail/py-punct.el
\r
70 NON_TIT_BIG5=$(srcdir)/quail/quick-b5.el $(srcdir)/quail/tsang-b5.el \
\r
71 $(srcdir)/quail/pypunct-b5.el
\r
73 NON_TIT_CNS=$(srcdir)/quail/quick-cns.el $(srcdir)/quail/tsang-cns.el
\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.el $(srcdir)/ja-dic/ja-dic.el
\r
85 KOREAN= $(srcdir)/quail/hangul.el \
\r
86 $(srcdir)/quail/hangul3.el \
\r
87 $(srcdir)/quail/hanja.el \
\r
88 $(srcdir)/quail/hanja-jis.el \
\r
89 $(srcdir)/quail/symbol-ksc.el
\r
91 THAI=$(srcdir)/quail/thai.el
\r
93 VIETNAMESE=$(srcdir)/quail/viqr.el
\r
95 LAO=$(srcdir)/quail/lao.el $(srcdir)/quail/lrt.el
\r
97 INDIAN=$(srcdir)/quail/devanagari.el
\r
99 TIBETAN=$(srcdir)/quail/tibetan.el
\r
101 LATIN=$(srcdir)/quail/latin-pre.el $(srcdir)/quail/latin-post.el
\r
104 $(srcdir)/quail/czech.el \
\r
105 $(srcdir)/quail/slovak.el
\r
107 GREEK=$(srcdir)/quail/greek.el
\r
109 RUSSIAN=$(srcdir)/quail/cyrillic.el $(srcdir)/quail/cyril-jis.el
\r
112 $(srcdir)/quail/ethiopic.el \
\r
113 $(srcdir)/quail/ipa.el \
\r
114 $(srcdir)/quail/hebrew.el
\r
116 CHINESE=$(CHINESE_GB) $(CHINESE_BIG5) $(CHINESE_CNS)
\r
117 EASTASIA=$(CHINESE) $(JAPANESE) $(KOREAN)
\r
118 ASIA=$(EASTASIA) $(THAI) $(VIETNAMESE) $(LAO) $(INDIAN) $(TIBETAN)
\r
119 EUROPEAN=$(LATIN) $(SLAVIC) $(GREEK) $(RUSSIAN)
\r
120 WORLD=$(ASIA) $(EUROPEAN) $(MISC)
\r
123 NON_TIT=$(CHINESE_NON_TIT) $(JAPANESE) $(KOREAN) $(EUROPEAN) $(MISC)
\r
125 all: $(BUILT_EMACS) $(SUBDIRS) $(TIT) leim-list.el
\r
127 # To ensure that we can run Emacs. This target is ignored (never
\r
128 # being hit) if a user changes default value of EMACS.
\r
129 $(dot)$(dot)/src/emacs:
\r
130 cd ../src; $(MAKE) $(MFLAGS) emacs
\r
134 echo stamp>stamp-subdir
\r
136 # Rule to generate quail/*.el from CXTERM-DIC/*.tit.
\r
138 # if not exist quail $(MAKE) quail
\r
139 set emacs_dir=$(INSTALL_DIR)
\r
140 set EMACSLOADPATH=$(buildlisppath)
\r
141 $(SETLOADPATH) $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \
\r
142 --eval $(ARGQUOTE)(batch-titdic-convert t)$(ARGQUOTE) -dir quail $(srcdir)/CXTERM-DIC
\r
143 $(SETLOADPATH) $(RUN_EMACS) -l $(buildlisppath)/international/quail \
\r
144 -f batch-byte-compile $(TIT)
\r
146 leim-list.el: $(SUBDIRS) $(WORLD)
\r
147 set emacs_dir=$(INSTALL_DIR)
\r
148 set EMACSLOADPATH=$(buildlisppath)
\r
149 $(SETLOADPATH) $(RUN_EMACS) -l $(buildlisppath)/international/quail \
\r
150 --eval $(ARGQUOTE)(update-leim-list-file $(DQUOTE).$(DQUOTE))$(ARGQUOTE)
\r
153 - mkdir "$(INSTALLDIR)"
\r
154 - $(DEL) same-dir.tst
\r
155 - $(DEL) $(INSTALL_DIR)/same-dir.tst
\r
156 echo SameDirTest > $(INSTALL_DIR)/same-dir.tst
\r
157 $(IFNOTSAMEDIR) $(CP) leim-list.el $(INSTALLDIR) $(ENDIF)
\r
158 $(IFNOTSAMEDIR) $(CP_DIR) quail $(INSTALLDIR) $(ENDIF)
\r
159 $(IFNOTSAMEDIR) $(CP_DIR) ja-dic $(INSTALLDIR) $(ENDIF)
\r
160 - $(DEL) $(INSTALL_DIR)/same-dir.tst
\r
163 - $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR)c $(ENDFOR)
\r
164 - $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
\r
165 - $(DEL) leim-list.el
\r
167 distclean maintainer-clean:
\r
168 if exist stamp-subdir $(DELTREE) $(SUBDIRS)
\r
169 - $(DEL) stamp-subdir
\r