]> code.delx.au - gnu-emacs/blob - leim/Makefile.in
Invoke emacs by --no-init-file --no-site-file.
[gnu-emacs] / leim / Makefile.in
1 # Makefile for leim subdirectory in GNU Emacs.
2 # Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.
3 # Licensed to the Free Software Foundation.
4
5 # This file is part of GNU Emacs.
6
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)
10 # any later version.
11 #
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.
16 #
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.
21
22 # Avoid trouble on systems where the `SHELL' variable might be
23 # inherited from the environment.
24 SHELL = /bin/sh
25
26 # Here are the things that we expect ../configure to edit.
27 version=@version@
28 prefix=@prefix@
29 datadir=@datadir@
30 srcdir=@srcdir@
31
32 # Where to install LEIM files.
33 INSTALLDIR=${datadir}/emacs/${version}/leim
34
35 # On Xenix and the IBM RS6000, double-dot gets screwed up.
36 dot = .
37 dotdot = ${dot}${dot}
38
39 # Which Emacs to use to convert TIT files to Emacs Lisp files,
40 # byte-compile Emacs Lisp files, and generate the file leim-list.el.
41 EMACS = ${dot}${dot}/src/emacs
42
43 buildlisppath=${srcdir}/${dot}${dot}/lisp
44
45 # How to run Emacs.
46 RUN-EMACS = ${EMACS} -batch --no-init-file --no-site-file
47
48 # Subdirectories to be made if ${srcdir} is different from the current
49 # directory.
50 SUBDIRS=quail skk
51
52 # Files generated from TIT dictionaries for Chinese GB character set.
53 TIT-GB=\
54 quail/CTLau.el \
55 quail/CCDOSPY.el \
56 quail/Punct.el \
57 quail/PY.el \
58 quail/QJ.el \
59 quail/SW.el \
60 quail/TONEPY.el \
61 quail/ZIRANMA.el
62
63 # Files generated from TIT dictionaries for Chinese BIG5 character set.
64 TIT-BIG5=\
65 quail/4Corner.el \
66 quail/ARRAY30.el \
67 quail/CTLauB.el \
68 quail/ECDICT.el \
69 quail/ETZY.el \
70 quail/Punct-b5.el \
71 quail/PY-b5.el \
72 quail/QJ-b5.el \
73 quail/ZOZY.el
74
75 TIT=${TIT-GB} ${TIT-BIG5}
76
77 CHINESE-GB=${TIT-GB} \
78 quail/py-punct.el
79
80 CHINESE-BIG5=${TIT-BIG5} \
81 quail/quick-b5.el quail/tsangchi-b5.el quail/py-punct-b5.el
82
83 CHINESE-CNS=quail/quick-cns.el quail/tsangchi-cns.el
84
85 JAPANESE=quail/japanese.el skk/skkdic.el
86
87 KOREAN= quail/hangul.el \
88 quail/hangul3.el \
89 quail/hanja.el \
90 quail/hanja-jis.el \
91 quail/symbol-ksc.el
92
93 THAI=quail/thai.el
94
95 VIETNAMESE=quail/viqr.el
96
97 LAO=quail/lao.el quail/lrt.el
98
99 INDIAN=quail/devanagari.el
100
101 TIBETAN=quail/tibetan.el
102
103 LATIN=quail/latin-pre.el quail/latin-post.el
104
105 GREEK=quail/greek.el
106
107 RUSSIAN=quail/cyrillic.el quail/cyril-jis.el
108
109 MISC=quail/ethiopic.el quail/ipa.el
110
111 CHINESE=${CHINESE-GB} ${CHINESE-BIG5} ${CHINESE-CNS}
112 EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN}
113 ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} ${TIBETAN}
114 EUROPEAN=${LATIN} ${GREEK} ${RUSSIAN}
115 WORLD=${ASIA} ${EUROPEAN} ${MISC}
116
117 all: ${EMACS} ${SUBDIRS} ${WORLD} leim-list.el
118
119 # To ensure that we can run Emacs. This target is ignored (never
120 # being hit) if a user changes default value of EMACS.
121 ${dot}${dot}/src/emacs:
122 cd ../src; ${MAKE} ${MFLAGS} emacs
123
124 ${SUBDIRS}:
125 mkdir $@
126 touch stamp-subdir
127
128 # Rule to generate quail/*.el from CXTERM-DIC/*.tit.
129 ${TIT}:
130 ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
131 --eval '(batch-titdic-convert t)' -dir quail ${srcdir}/CXTERM-DIC
132 ${RUN-EMACS} -f batch-byte-compile ${TIT}
133
134 # Emacs Lisp source files not generated from TIT dictionaries are
135 # distributed as is. So, hitting this target means that ${srcdir} is
136 # different from the current directory. In this case, we just make
137 # links.
138 %.el:
139 @LN_S@ ${srcdir}/$@ $@
140 @LN_S@ ${srcdir}/$@c $@c
141
142 leim-list.el: ${SUBDIRS} ${WORLD}
143 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
144 --eval "(update-leim-list-file \".\")"
145
146 install: all
147 if [ x`(cd ${INSTALLDIR}; /bin/pwd)` != x`(/bin/pwd)` ] ; then \
148 rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/skk ; \
149 echo "Copying leim/quail/* and leim/skk/* to ${INSTALLDIR} ..." ; \
150 tar -chf - ${SUBDIRS} | (cd ${INSTALLDIR}; umask 0; tar -xvf -) ; \
151 else true; fi
152 ${RUN-EMACS} -l ${buildlisppath}/international/quail \
153 --eval "(update-leim-list-file \"${INSTALLDIR}\")"
154
155 clean mostlyclean:
156 ELC=`echo ${TIT} | sed 's/\.el/.elc/g'`; \
157 rm -f ${TIT} $$ELC leim-list.el
158
159 distclean maintainer-clean:
160 if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi
161 rm -f Makefile