diff options
| author | Kenichi Handa | 1997-08-28 10:49:24 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-08-28 10:49:24 +0000 |
| commit | ac880bd60a60d73fd1dd672a17ebd7da62ca5d39 (patch) | |
| tree | a678e7be6091a96b64efa67c84c1ce381b561bb0 | |
| parent | 0e5c5ac0f8cea07566b9d8ac3a5f842b311f9233 (diff) | |
| download | emacs-ac880bd60a60d73fd1dd672a17ebd7da62ca5d39.tar.gz emacs-ac880bd60a60d73fd1dd672a17ebd7da62ca5d39.zip | |
(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}.
| -rw-r--r-- | leim/Makefile.in | 41 |
1 files changed, 16 insertions, 25 deletions
diff --git a/leim/Makefile.in b/leim/Makefile.in index ec83969cea9..a5ff75e81db 100644 --- a/leim/Makefile.in +++ b/leim/Makefile.in | |||
| @@ -34,7 +34,6 @@ 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. |
| @@ -47,7 +46,7 @@ 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=\ |
| @@ -123,7 +122,7 @@ WORLD=${ASIA} ${EUROPEAN} ${MISC} | |||
| 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. |
| @@ -136,29 +135,19 @@ ${SUBDIRS}: | |||
| 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 \ |
| @@ -166,11 +155,13 @@ install: all | |||
| 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: |