Commit | Line | Data |
---|---|---|
918dd0ab AI |
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 | |
4 | \r | |
5 | # This file is part of GNU Emacs.\r | |
6 | \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 | |
11 | #\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 | |
16 | #\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 | |
21 | \r | |
22 | srcdir=.\r | |
23 | \r | |
24 | # Where to install LEIM files.\r | |
25 | INSTALLDIR=$(INSTALL_DIR)\leim\r | |
26 | \r | |
27 | # On Xenix and the IBM RS6000, double-dot gets screwed up.\r | |
28 | dot = .\r | |
29 | \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 | |
33 | \r | |
34 | buildlisppath=$(dot)$(dot)/lisp\r | |
35 | \r | |
36 | # How to run Emacs.\r | |
37 | RUN_EMACS = "$(BUILT_EMACS)" -batch --no-init-file --no-site-file --multibyte\r | |
38 | \r | |
39 | # Subdirectories to be made if $(srcdir) is different from the current\r | |
40 | # directory.\r | |
41 | SUBDIRS=quail\r | |
42 | \r | |
43 | # Files generated from TIT dictionaries for Chinese GB character set.\r | |
44 | TIT_GB=\\r | |
45 | quail/CTLau.el \\r | |
46 | quail/CCDOSPY.el \\r | |
47 | quail/Punct.el \\r | |
48 | quail/PY.el \\r | |
49 | quail/QJ.el \\r | |
50 | quail/SW.el \\r | |
51 | quail/TONEPY.el \\r | |
52 | quail/ZIRANMA.el\r | |
53 | \r | |
54 | # Files generated from TIT dictionaries for Chinese BIG5 character set.\r | |
55 | TIT_BIG5=\\r | |
56 | quail/4Corner.el \\r | |
57 | quail/ARRAY30.el \\r | |
58 | quail/CTLauB.el \\r | |
59 | quail/ECDICT.el \\r | |
60 | quail/ETZY.el \\r | |
61 | quail/Punct-b5.el \\r | |
62 | quail/PY-b5.el \\r | |
63 | quail/QJ-b5.el \\r | |
64 | quail/ZOZY.el\r | |
65 | \r | |
66 | CHINESE_TIT=$(TIT_GB) $(TIT_BIG5)\r | |
67 | \r | |
68 | NON_TIT_GB=$(srcdir)/quail/py-punct.el\r | |
69 | \r | |
70 | NON_TIT_BIG5=$(srcdir)/quail/quick-b5.el $(srcdir)/quail/tsang-b5.el \\r | |
71 | $(srcdir)/quail/pypunct-b5.el\r | |
72 | \r | |
73 | NON_TIT_CNS=$(srcdir)/quail/quick-cns.el $(srcdir)/quail/tsang-cns.el\r | |
74 | \r | |
75 | CHINESE_NON_TIT=$(NON_TIT_GB) $(NON_TIT_BIG5) $(NON_TIT_CNS)\r | |
76 | \r | |
77 | CHINESE_GB=$(TIT_GB) $(NON_TIT_GB)\r | |
78 | \r | |
79 | CHINESE_BIG5=$(TIT_BIG5) $(NON_TIT_BIG5) \r | |
80 | \r | |
81 | CHINESE_CNS=$(NON_TIT_CNS) \r | |
82 | \r | |
83 | JAPANESE=$(srcdir)/quail/japanese.el $(srcdir)/ja-dic/ja-dic.el\r | |
84 | \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 | |
90 | \r | |
91 | THAI=$(srcdir)/quail/thai.el\r | |
92 | \r | |
93 | VIETNAMESE=$(srcdir)/quail/viqr.el\r | |
94 | \r | |
95 | LAO=$(srcdir)/quail/lao.el $(srcdir)/quail/lrt.el\r | |
96 | \r | |
97 | INDIAN=$(srcdir)/quail/devanagari.el\r | |
98 | \r | |
99 | TIBETAN=$(srcdir)/quail/tibetan.el\r | |
100 | \r | |
101 | LATIN=$(srcdir)/quail/latin-pre.el $(srcdir)/quail/latin-post.el\r | |
102 | \r | |
103 | SLAVIC= \\r | |
104 | $(srcdir)/quail/czech.el \\r | |
105 | $(srcdir)/quail/slovak.el\r | |
106 | \r | |
107 | GREEK=$(srcdir)/quail/greek.el\r | |
108 | \r | |
109 | RUSSIAN=$(srcdir)/quail/cyrillic.el $(srcdir)/quail/cyril-jis.el\r | |
110 | \r | |
111 | MISC= \\r | |
112 | $(srcdir)/quail/ethiopic.el \\r | |
113 | $(srcdir)/quail/ipa.el \\r | |
114 | $(srcdir)/quail/hebrew.el\r | |
115 | \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 | |
121 | \r | |
122 | TIT=$(CHINESE_TIT)\r | |
123 | NON_TIT=$(CHINESE_NON_TIT) $(JAPANESE) $(KOREAN) $(EUROPEAN) $(MISC)\r | |
124 | \r | |
125 | all: $(BUILT_EMACS) $(SUBDIRS) $(TIT) leim-list.el\r | |
126 | \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 | |
131 | \r | |
132 | $(SUBDIRS):\r | |
133 | mkdir "$@"\r | |
134 | echo stamp>stamp-subdir\r | |
135 | \r | |
136 | # Rule to generate quail/*.el from CXTERM-DIC/*.tit.\r | |
137 | $(TIT):\r | |
138 | # if not exist quail $(MAKE) quail\r | |
139 | set emacs_dir=$(INSTALL_DIR)\r | |
140 | $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \\r | |
141 | --eval $(ARGQUOTE)(batch-titdic-convert t)$(ARGQUOTE) -dir quail $(srcdir)/CXTERM-DIC\r | |
142 | $(RUN_EMACS) -l $(buildlisppath)/international/quail \\r | |
143 | -f batch-byte-compile $(TIT)\r | |
144 | \r | |
145 | leim-list.el: $(SUBDIRS) $(WORLD)\r | |
146 | set emacs_dir=$(INSTALL_DIR)\r | |
147 | $(RUN_EMACS) -l $(buildlisppath)/international/quail \\r | |
148 | --eval $(ARGQUOTE)(update-leim-list-file $(DQUOTE).$(DQUOTE))$(ARGQUOTE)\r | |
149 | \r | |
150 | install: all\r | |
151 | - mkdir "$(INSTALLDIR)"\r | |
152 | - $(DEL) same-dir.tst\r | |
153 | - $(DEL) $(INSTALL_DIR)/same-dir.tst\r | |
154 | echo SameDirTest > $(INSTALL_DIR)/same-dir.tst\r | |
155 | $(IFNOTSAMEDIR) $(CP) leim-list.el $(INSTALLDIR) $(ENDIF)\r | |
156 | $(IFNOTSAMEDIR) $(CP_DIR) quail $(INSTALLDIR)/quail $(ENDIF)\r | |
157 | $(IFNOTSAMEDIR) $(CP_DIR) ja-dic $(INSTALLDIR)/ja-dic $(ENDIF)\r | |
158 | - $(DEL) $(INSTALL_DIR)/same-dir.tst\r | |
159 | \r | |
160 | clean mostlyclean:\r | |
161 | $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR)c $(ENDFOR)\r | |
162 | $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)\r | |
163 | $(DEL) leim-list.el\r | |
164 | \r | |
165 | distclean maintainer-clean:\r | |
166 | if exist stamp-subdir $(DELTREE) $(SUBDIRS)\r | |
167 | $(DEL) stamp-subdir\r |