aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-07-25 07:31:26 +0000
committerKenichi Handa1997-07-25 07:31:26 +0000
commit8f5aa81c5752995a8e4b775a8767f2eeacbfbaa0 (patch)
treefeba8f82b9e7db8855d9e6135b46509905b85fb9
parent05e60fc09320cadbb329491266caadd03520bfe9 (diff)
downloademacs-8f5aa81c5752995a8e4b775a8767f2eeacbfbaa0.tar.gz
emacs-8f5aa81c5752995a8e4b775a8767f2eeacbfbaa0.zip
(TIT): New variable, contatination of TIT-GB and TIT-BIG5.
(RUN-EMACS): Do not set EMACSLOADPATH. (ASIA): Include TIBEAN. (all): Remove stamp-bytecomp from dependency list. ({$TIT}): New target, substitues the target ${TIT-GB} ${TIT-BIG5}. (%.el): Make a link for byte-compiled file too. (stamp-bytecomp): Target deleted. (leim-list.el): Run Emacs with loading quail. (install-XXX): These targets deleted. (install): Remove files under INSTALLDIR before copying new files. Run Emacs with loading quail. (clean mostlyclean): Remove only generated files.
-rw-r--r--leim/Makefile.in180
1 files changed, 29 insertions, 151 deletions
diff --git a/leim/Makefile.in b/leim/Makefile.in
index 4d760190313..8d54a9d309d 100644
--- a/leim/Makefile.in
+++ b/leim/Makefile.in
@@ -43,8 +43,7 @@ EMACS = ${dot}${dot}/src/emacs
43buildlisppath=${srcdir}/${dot}${dot}/lisp 43buildlisppath=${srcdir}/${dot}${dot}/lisp
44 44
45# How to run Emacs. This forces Emacs to use new Emacs Lisp libraries. 45# How to run Emacs. This forces Emacs to use new Emacs Lisp libraries.
46RUN-EMACS = EMACSLOADPATH=${buildlisppath}:${buildlisppath}/international \ 46RUN-EMACS = ${EMACS} -batch
47 ${EMACS}
48 47
49# Subdirectories to be made if ${srcdir} is different from the current 48# Subdirectories to be made if ${srcdir} is different from the current
50# directory. 49# directory.
@@ -73,17 +72,19 @@ TIT-BIG5=\
73 quail/QJ-b5.el \ 72 quail/QJ-b5.el \
74 quail/ZOZY.el 73 quail/ZOZY.el
75 74
75TIT=${TIT-GB} ${TIT-BIG5}
76
76CHINESE-GB=${TIT-GB} \ 77CHINESE-GB=${TIT-GB} \
77 quail/py-punct.el 78 quail/py-punct.el
78 79
79CHINESE-BIG5=${TIT-BIG5} \ 80CHINESE-BIG5=${TIT-BIG5} \
80 quail/quick-b5.el quail/tsangchi-b5.el quail/py-punct-b5.el 81 quail/quick-b5.el quail/tsangchi-b5.el quail/py-punct-b5.el
81 82
82CHINESE-CNS=quail/quick-cns.el quail/tsangchi-cns.el 83CHINESE-CNS=quail/quick-cns.el quail/tsangchi-cns.el
83 84
84JAPANESE=quail/japanese.el skk/skkdic.el 85JAPANESE=quail/japanese.el skk/skkdic.el
85 86
86KOREAN= quail/hangul.el \ 87KOREAN= quail/hangul.el \
87 quail/hangul3.el \ 88 quail/hangul3.el \
88 quail/hanja.el \ 89 quail/hanja.el \
89 quail/hanja-jis.el \ 90 quail/hanja-jis.el \
@@ -109,11 +110,11 @@ MISC=quail/ethiopic.el quail/ipa.el
109 110
110CHINESE=${CHINESE-GB} ${CHINESE-BIG5} ${CHINESE-CNS} 111CHINESE=${CHINESE-GB} ${CHINESE-BIG5} ${CHINESE-CNS}
111EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN} 112EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN}
112ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} 113ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} ${TIBETAN}
113EUROPEAN=${LATIN} ${GREEK} ${RUSSIAN} 114EUROPEAN=${LATIN} ${GREEK} ${RUSSIAN}
114WORLD=${ASIA} ${EUROPEAN} ${MISC} 115WORLD=${ASIA} ${EUROPEAN} ${MISC}
115 116
116all: ${SUBDIRS} ${WORLD} stamp-bytecomp leim-list.el 117all: ${EMACS} ${SUBDIRS} ${WORLD} leim-list.el
117 118
118# To ensure that we can run Emacs. This target is ignored (never 119# To ensure that we can run Emacs. This target is ignored (never
119# being hit) if a user changes default value of EMACS. 120# being hit) if a user changes default value of EMACS.
@@ -125,159 +126,36 @@ ${SUBDIRS}:
125 touch stamp-subdir 126 touch stamp-subdir
126 127
127# Rule to generate quail/*.el from CXTERM-DIC/*.tit. 128# Rule to generate quail/*.el from CXTERM-DIC/*.tit.
128${TIT-GB} ${TIT-BIG5}: ${EMACS} 129${TIT}:
129 ${RUN-EMACS} -batch -l titdic-cnv --eval '(batch-titdic-convert t)'\ 130 ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
130 -dir quail ${srcdir}/CXTERM-DIC 131 --eval '(batch-titdic-convert t)' -dir quail ${srcdir}/CXTERM-DIC
132 ${RUN-EMACS} -f batch-byte-compile ${TIT}
131 133
132# Emacs Lisp source files not generated from TIT dictionaries are 134# Emacs Lisp source files not generated from TIT dictionaries are
133# distributed as is. So, we just make symbolic links to them if 135# distributed as is. So, hitting this target means that ${srcdir} is
134# ${srcdir} is different form the current directory. 136# different from the current directory. In this case, we just make
137# links.
135%.el: 138%.el:
136 @LN_S@ ${srcdir}/$@ $@ 139 @LN_S@ ${srcdir}/$@ $@
140 @LN_S@ ${srcdir}/$@c $@c
137 141
138stamp-bytecomp: ${WORLD} ${EMACS} 142leim-list.el: ${SUBDIRS} ${WORLD}
139 ${RUN-EMACS} -batch --eval '(byte-recompile-directory "quail" 0)' 143 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
140 if test ! -f skk/skkdic.elc; then \ 144 --eval "(update-leim-list-file \".\")"
141 if test -f ${srcdir}/skk/skkdic.elc; then \
142 @LN_S@ ${srcdir}/skk/skkdic.elc skk; \
143 else \
144 ${RUN-EMACS} -batch -l skkdic-cnv \
145 --eval '(byte-recompile-directory "skk" 0)'; \
146 fi ; \
147 else true ; \
148 fi
149 touch stamp-bytecomp
150
151leim-list.el: ${EMACS} ${SUBDIRS} ${WORLD}
152 ${RUN-EMACS} -batch --eval "(update-leim-list-file \".\")"
153
154# install -- all languages supported by LEIM
155# install-asia -- all Asian languages
156# install-eastasia -- all Each Asian languages
157# install-chinese -- all Chinese Languages
158# install-chinese-gb -- Chinese (GB)
159# install-chinese-big5 -- Chinese (BIG5)
160# install-chinese-cns -- Chinese (CNS)
161# install-japanese -- Japanese
162# install-korean -- Korean (hangul and hanja)
163# install-thai -- Thai
164# install-vietnamese -- Vietnamese
165# install-lao -- Lao
166# install-indian -- Indian (Devanagari script)
167# install-tibetan -- Tibetan (Devanagari)
168# install-european -- all European languages
169# install-latin -- all Latin scripts
170# install-greek -- Greek
171# install-russian -- Russian (cyrillic)
172# install-misc -- Ethiopic and IPA
173 145
174install: all 146install: all
175 tar cfh - ${SUBDIRS} | (cd ${INSTALLDIR}; tar xvf -) 147 if [ x`(cd ${INSTALLDIR}; /bin/pwd)` != x`(/bin/pwd)` ] ; then \
176 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")" 148 rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/skk ; \
177 149 echo "Copying leim/quail/* and leim/skk/* to ${INSTALLDIR} ..." ; \
178install-asia: all 150 tar -chf - ${SUBDIRS} | (cd ${INSTALLDIR}; umask 0; tar -xvf -) ; \
179 ELC=`echo ${ASIA} | sed 's/\.el/.elc/g'`; \
180 tar cfh - $$ELC ${ASIA} | (cd ${INSTALLDIR}; tar xvf -)
181 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
182
183install-eastasia: all
184 ELC=`echo ${EASTASIA} | sed 's/\.el/.elc/g'`; \
185 tar cfh - $$ELC ${EASTASIA} | (cd ${INSTALLDIR}; tar xvf -)
186 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
187
188install-chinese: all ${CHINESE}
189 ELC=`echo ${CHINESE} | sed 's/\.el/.elc/g'`; \
190 tar cfh - $$ELC ${CHINESE} | (cd ${INSTALLDIR}; tar xvf -)
191 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
192
193install-chinese-gb: all ${CHINESE-GB}
194 ELC=`echo ${CHINESE-GB} | sed 's/\.el/.elc/g'`; \
195 tar cfh - $$ELC ${CHINESE-GB} | (cd ${INSTALLDIR}; tar xvf -)
196 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
197
198install-chinese-big5: all ${CHINESE-BIG5}
199 ELC=`echo ${CHINESE-BIG5} | sed 's/\.el/.elc/g'`; \
200 tar cfh - $$ELC ${CHINESE-BIG5} | (cd ${INSTALLDIR}; tar xvf -)
201 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
202
203install-chinese-cns: all ${CHINESE-CNS}
204 ELC=`echo ${CHINESE-CNS} | sed 's/\.el/.elc/g'`; \
205 tar cfh - $$ELC ${CHINESE-CNS} | (cd ${INSTALLDIR}; tar xvf -)
206 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
207
208install-japanese: all ${JAPANESE}
209 ELC=`echo ${JAPANESE} | sed 's/\.el/.elc/g'`; \
210 tar cfh - $$ELC ${JAPANESE} | (cd ${INSTALLDIR}; tar xvf -)
211 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
212
213install-korean: all ${KOREAN}
214 ELC=`echo ${KOREAN} | sed 's/\.el/.elc/g'`; \
215 tar cfh - $$ELC ${KOREAN} | (cd ${INSTALLDIR}; tar xvf -)
216 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
217
218install-thai: all ${THAI}
219 ELC=`echo ${THAI} | sed 's/\.el/.elc/g'`; \
220 tar cfh - $$ELC ${THAI} | (cd ${INSTALLDIR}; tar xvf -)
221 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
222
223install-vietnamese: all ${VIETNAMESE}
224 ELC=`echo ${VIETNAMESE} | sed 's/\.el/.elc/g'`; \
225 tar cfh - $$ELC ${VIETNAMESE} | (cd ${INSTALLDIR}; tar xvf -)
226 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
227
228install-lao: all ${LAO}
229 ELC=`echo ${LAO} | sed 's/\.el/.elc/g'`; \
230 tar cfh - $$ELC ${LAO} | (cd ${INSTALLDIR}; tar xvf -)
231 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
232
233install-indian: all ${INDIAN}
234 ELC=`echo ${INDIAN} | sed 's/\.el/.elc/g'`; \
235 tar cfh - $$ELC ${INDIAN} | (cd ${INSTALLDIR}; tar xvf -)
236 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
237
238install-tibetan: all ${TIBETAN}
239 ELC=`echo ${TIBETAN} | sed 's/\.el/.elc/g'`; \
240 tar cfh - $$ELC ${TIBETAN} | (cd ${INSTALLDIR}; tar xvf -)
241 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
242
243install-european: all ${EUROPEAN}
244 ELC=`echo ${EUROPEAN} | sed 's/\.el/.elc/g'`; \
245 tar cfh - $$ELC ${EUROPEAN} | (cd ${INSTALLDIR}; tar xvf -)
246 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
247
248install-latin: all ${LATIN}
249 ELC=`echo ${LATIN} | sed 's/\.el/.elc/g'`; \
250 tar cfh - $$ELC ${LATIN} | (cd ${INSTALLDIR}; tar xvf -)
251 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
252
253install-greek: all ${GREEK}
254 ELC=`echo ${GREEK} | sed 's/\.el/.elc/g'`; \
255 tar cfh - $$ELC ${GREEK} | (cd ${INSTALLDIR}; tar xvf -)
256 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
257
258install-russian: all ${RUSSIAN}
259 ELC=`echo ${RUSSIAN} | sed 's/\.el/.elc/g'`; \
260 tar cfh - $$ELC ${RUSSIAN} | (cd ${INSTALLDIR}; tar xvf -)
261 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
262
263install-misc: all ${MISC}
264 ELC=`echo ${MISC} | sed 's/\.el/.elc/g'`; \
265 tar cfh - $$ELC ${MISC} | (cd ${INSTALLDIR}; tar xvf -)
266 ${RUN-EMACS} -batch --eval "(update-leim-list-file \"${INSTALLDIR}\")"
267
268mostlyclean:
269 rm -f quail/*.elc stamp-bytecomp
270
271# This used to use test -L, but that is not portable.
272# If Makefile.in doesn't exist in the build directory
273# then it isn't the source directory, so we should delete the file.
274clean:
275 rm -rf ${TIT-GB} ${TIT-BIG5} quail/*.elc stamp-bytecomp leim-list.el
276# If this is not a dot-srcdir build, then remove the link made to skkdic.elc.
277 if test ! -f Makefile.in; then \
278 rm -f skk/skkdic.elc; \
279 else true; fi 151 else true; fi
152 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
153 --eval "(update-leim-list-file \"${INSTALLDIR}\")"
154
155clean mostlyclean:
156 ELC=`echo ${TIT} | sed 's/\.el/.elc/g'`; \
157 rm -f ${TIT} $$ELC leim-list.el
280 158
281distclean maintainer-clean: clean 159distclean maintainer-clean:
282 if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi 160 if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi
283 rm -f Makefile 161 rm -f Makefile