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
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 $(srcdir)/quail/latin-post.elc
\r
104 $(srcdir)/quail/czech.elc \
\r
105 $(srcdir)/quail/slovak.elc
\r
107 GREEK=$(srcdir)/quail/greek.elc
\r
109 RUSSIAN=$(srcdir)/quail/cyrillic.elc $(srcdir)/quail/cyril-jis.elc
\r
112 $(srcdir)/quail/ethiopic.elc \
\r
113 $(srcdir)/quail/ipa.elc \
\r
114 $(srcdir)/quail/hebrew.elc
\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 set EMACSLOADPATH=$(buildlisppath)
\r
139 $(SETLOADPATH) $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \
\r
140 --eval $(ARGQUOTE)(batch-titdic-convert t)$(ARGQUOTE) -dir quail $(srcdir)/CXTERM-DIC
\r
141 $(SETLOADPATH) $(RUN_EMACS) -l $(buildlisppath)/international/quail \
\r
142 -f batch-byte-compile $(TIT:.elc=.el)
\r
144 .SUFFIXES: .elc .el
\r
147 set EMACSLOADPATH=$(buildlisppath)
\r
148 $(SETLOADPATH) $(RUN_EMACS) -f batch-byte-compile $<
\r
150 leim-list.el: $(SUBDIRS) $(WORLD)
\r
151 set EMACSLOADPATH=$(buildlisppath)
\r
152 $(SETLOADPATH) $(RUN_EMACS) -l $(buildlisppath)/international/quail \
\r
153 --eval $(ARGQUOTE)(update-leim-list-file $(DQUOTE).$(DQUOTE))$(ARGQUOTE)
\r
156 - mkdir "$(INSTALLDIR)"
\r
157 - $(DEL) same-dir.tst
\r
158 - $(DEL) $(INSTALL_DIR)/same-dir.tst
\r
159 echo SameDirTest > $(INSTALL_DIR)/same-dir.tst
\r
160 $(IFNOTSAMEDIR) $(CP) leim-list.el $(INSTALLDIR) $(ENDIF)
\r
161 $(IFNOTSAMEDIR) $(CP_DIR) quail $(INSTALLDIR) $(ENDIF)
\r
162 $(IFNOTSAMEDIR) $(CP_DIR) ja-dic $(INSTALLDIR) $(ENDIF)
\r
163 - $(DEL) $(INSTALL_DIR)/same-dir.tst
\r
166 - $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
\r
167 - $(FOREACH) $(TIT:.elc=.el) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
\r
168 - $(DEL) leim-list.el
\r
170 distclean maintainer-clean:
\r
171 if exist stamp-subdir $(DELTREE) $(SUBDIRS)
\r
172 - $(DEL) stamp-subdir
\r