Mercurial > emacs
comparison leim/Makefile.in @ 19604:a647176226bc
(dotdot): This macro deleted.
(SUBDIRS): Exclude skk.
(all): Substitute ${WORLD} to ${TIT}.
(%.el): This target deleted.
(${TIT}): Check existence of `quail' subdirectory.
(leim-list.el): Do not check old files.
(install): If ${srcdir} is different from the current directory,
copy also files under ${srcdir}.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 28 Aug 1997 10:49:24 +0000 |
parents | b21c14f05753 |
children | c7d76a23d1eb |
comparison
equal
deleted
inserted
replaced
19603:c64809380976 | 19604:a647176226bc |
---|---|
32 # Where to install LEIM files. | 32 # Where to install LEIM files. |
33 INSTALLDIR=${datadir}/emacs/${version}/leim | 33 INSTALLDIR=${datadir}/emacs/${version}/leim |
34 | 34 |
35 # On Xenix and the IBM RS6000, double-dot gets screwed up. | 35 # On Xenix and the IBM RS6000, double-dot gets screwed up. |
36 dot = . | 36 dot = . |
37 dotdot = ${dot}${dot} | |
38 | 37 |
39 # Which Emacs to use to convert TIT files to Emacs Lisp files, | 38 # 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. | 39 # byte-compile Emacs Lisp files, and generate the file leim-list.el. |
41 EMACS = ${dot}${dot}/src/emacs | 40 EMACS = ${dot}${dot}/src/emacs |
42 | 41 |
45 # How to run Emacs. | 44 # How to run Emacs. |
46 RUN-EMACS = ${EMACS} -batch --no-init-file --no-site-file | 45 RUN-EMACS = ${EMACS} -batch --no-init-file --no-site-file |
47 | 46 |
48 # Subdirectories to be made if ${srcdir} is different from the current | 47 # Subdirectories to be made if ${srcdir} is different from the current |
49 # directory. | 48 # directory. |
50 SUBDIRS=quail skk | 49 SUBDIRS=quail |
51 | 50 |
52 # Files generated from TIT dictionaries for Chinese GB character set. | 51 # Files generated from TIT dictionaries for Chinese GB character set. |
53 TIT-GB=\ | 52 TIT-GB=\ |
54 quail/CTLau.el \ | 53 quail/CTLau.el \ |
55 quail/CCDOSPY.el \ | 54 quail/CCDOSPY.el \ |
121 WORLD=${ASIA} ${EUROPEAN} ${MISC} | 120 WORLD=${ASIA} ${EUROPEAN} ${MISC} |
122 | 121 |
123 TIT=${CHINESE-TIT} | 122 TIT=${CHINESE-TIT} |
124 NON-TIT=${CHINESE-NON-TIT} ${JAPANESE} ${KOREAN} ${EUROPEAN} ${MISC} | 123 NON-TIT=${CHINESE-NON-TIT} ${JAPANESE} ${KOREAN} ${EUROPEAN} ${MISC} |
125 | 124 |
126 all: ${EMACS} ${SUBDIRS} ${WORLD} leim-list.el | 125 all: ${EMACS} ${SUBDIRS} ${TIT} leim-list.el |
127 | 126 |
128 # To ensure that we can run Emacs. This target is ignored (never | 127 # To ensure that we can run Emacs. This target is ignored (never |
129 # being hit) if a user changes default value of EMACS. | 128 # being hit) if a user changes default value of EMACS. |
130 ${dot}${dot}/src/emacs: | 129 ${dot}${dot}/src/emacs: |
131 cd ../src; ${MAKE} ${MFLAGS} emacs | 130 cd ../src; ${MAKE} ${MFLAGS} emacs |
134 mkdir $@ | 133 mkdir $@ |
135 touch stamp-subdir | 134 touch stamp-subdir |
136 | 135 |
137 # Rule to generate quail/*.el from CXTERM-DIC/*.tit. | 136 # Rule to generate quail/*.el from CXTERM-DIC/*.tit. |
138 ${TIT}: | 137 ${TIT}: |
138 [ -d quail ] || mkdir quail | |
139 ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \ | 139 ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \ |
140 --eval '(batch-titdic-convert t)' -dir quail ${srcdir}/CXTERM-DIC | 140 --eval '(batch-titdic-convert t)' -dir quail ${srcdir}/CXTERM-DIC |
141 ${RUN-EMACS} -f batch-byte-compile ${TIT} | 141 ${RUN-EMACS} -f batch-byte-compile ${TIT} |
142 | 142 |
143 # Emacs Lisp source files not generated from TIT dictionaries are | 143 leim-list.el: ${SUBDIRS} ${TIT} |
144 # distributed as is. So, hitting this target means that ${srcdir} is | 144 if [ x`(cd ${srcdir}; /bin/pwd)` = x`(/bin/pwd)` ] ; then \ |
145 # different from the current directory. In this case, we just make | 145 ${RUN-EMACS} -l ${buildlisppath}/international/quail \ |
146 # links. | 146 --eval "(update-leim-list-file \".\")" ; \ |
147 %.el: | 147 else \ |
148 @LN_S@ ${srcdir}/$@ $@ | 148 ${RUN-EMACS} -l ${buildlisppath}/international/quail \ |
149 @LN_S@ ${srcdir}/$@c $@c | 149 --eval "(update-leim-list-file \".\" \"${srcdir}\")" ; \ |
150 | 150 fi |
151 # Before running update-leim-list-file, delete all old files which are | |
152 # not contained in ${WORLD}. | |
153 leim-list.el: ${SUBDIRS} ${WORLD} | |
154 for dir in ${SUBDIRS}; do \ | |
155 for f in $${dir}/*.el; do \ | |
156 if echo ${WORLD} | grep $${f} > /dev/null; then true; \ | |
157 else rm -f $${f}* ; fi; \ | |
158 done; \ | |
159 done | |
160 ${RUN-EMACS} -l ${buildlisppath}/international/quail \ | |
161 --eval "(update-leim-list-file \".\")" | |
162 | 151 |
163 install: all | 152 install: all |
164 if [ x`(cd ${INSTALLDIR}; /bin/pwd)` != x`(/bin/pwd)` ] ; then \ | 153 if [ x`(cd ${INSTALLDIR}; /bin/pwd)` != x`(/bin/pwd)` ] ; then \ |
165 rm -rf ${INSTALLDIR}/leim-list.el; \ | 154 rm -rf ${INSTALLDIR}/leim-list.el; \ |
166 rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/skk ; \ | 155 rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/skk ; \ |
167 echo "Copying leim files to ${INSTALLDIR} ..." ; \ | 156 echo "Copying leim files to ${INSTALLDIR} ..." ; \ |
168 cp leim-list.el ${INSTALLDIR} ; \ | 157 cp leim-list.el ${INSTALLDIR} ; \ |
169 tar -cf - ${TIT} \ | 158 tar -cf - leim-list.el ${SUBDIRS} \ |
170 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\ | 159 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\ |
171 cd ${srcdir}; \ | 160 if [ x`(cd ${srcdir}; /bin/pwd)` != x`(/bin/pwd)` ] ; then \ |
172 tar -cf - ${NON-TIT} \ | 161 cd ${srcdir}; \ |
162 tar -cf - ${SUBDIRS} \ | |
173 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\ | 163 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\ |
164 else true; fi; \ | |
174 else true; fi | 165 else true; fi |
175 | 166 |
176 clean mostlyclean: | 167 clean mostlyclean: |
177 ELC=`echo ${TIT} | sed 's/\.el/.elc/g'`; \ | 168 ELC=`echo ${TIT} | sed 's/\.el/.elc/g'`; \ |
178 rm -f ${TIT} $$ELC leim-list.el | 169 rm -f ${TIT} $$ELC leim-list.el |