# Which Emacs to use to convert TIT files to Emacs Lisp files,
# byte-compile Emacs Lisp files, and generate the file leim-list.el.
-EMACS = ${dot}${dot}/src/emacs
+BUILT-EMACS = ${dot}${dot}/src/emacs
buildlisppath=${srcdir}/${dot}${dot}/lisp
# How to run Emacs.
-RUN-EMACS = ${EMACS} -batch --no-init-file --no-site-file
+RUN-EMACS = ${BUILT-EMACS} -batch --no-init-file --no-site-file
# Subdirectories to be made if ${srcdir} is different from the current
# directory.
CHINESE-TIT=${TIT-GB} ${TIT-BIG5}
-NON-TIT-GB=quail/py-punct.el
+NON-TIT-GB=${srcdir}/quail/py-punct.el
-NON-TIT-BIG5=quail/quick-b5.el quail/tsang-b5.el quail/pypunct-b5.el
+NON-TIT-BIG5=${srcdir}/quail/quick-b5.el ${srcdir}/quail/tsang-b5.el \
+ ${srcdir}/quail/pypunct-b5.el
-NON-TIT-CNS=quail/quick-cns.el quail/tsang-cns.el
+NON-TIT-CNS=${srcdir}/quail/quick-cns.el ${srcdir}/quail/tsang-cns.el
CHINESE-NON-TIT=${NON-TIT-GB} ${NON-TIT-BIG5} ${NON-TIT-CNS}
CHINESE-CNS=${NON-TIT-CNS}
-JAPANESE=quail/japanese.el skk/skkdic.el
+JAPANESE=${srcdir}/quail/japanese.el ${srcdir}/skk/skkdic.el
-KOREAN= quail/hangul.el \
- quail/hangul3.el \
- quail/hanja.el \
- quail/hanja-jis.el \
- quail/symbol-ksc.el
+KOREAN= ${srcdir}/quail/hangul.el \
+ ${srcdir}/quail/hangul3.el \
+ ${srcdir}/quail/hanja.el \
+ ${srcdir}/quail/hanja-jis.el \
+ ${srcdir}/quail/symbol-ksc.el
-THAI=quail/thai.el
+THAI=${srcdir}/quail/thai.el
-VIETNAMESE=quail/viqr.el
+VIETNAMESE=${srcdir}/quail/viqr.el
-LAO=quail/lao.el quail/lrt.el
+LAO=${srcdir}/quail/lao.el ${srcdir}/quail/lrt.el
-INDIAN=quail/devanagari.el
+INDIAN=${srcdir}/quail/devanagari.el
-TIBETAN=quail/tibetan.el
+TIBETAN=${srcdir}/quail/tibetan.el
-LATIN=quail/latin-pre.el quail/latin-post.el
+LATIN=${srcdir}/quail/latin-pre.el ${srcdir}/quail/latin-post.el
-GREEK=quail/greek.el
+SLAVIC= \
+ ${srcdir}/quail/czech.el \
+ ${srcdir}/quail/slovak.el
-RUSSIAN=quail/cyrillic.el quail/cyril-jis.el
+GREEK=${srcdir}/quail/greek.el
-MISC=quail/ethiopic.el quail/ipa.el
+RUSSIAN=${srcdir}/quail/cyrillic.el ${srcdir}/quail/cyril-jis.el
+
+MISC=${srcdir}/quail/ethiopic.el ${srcdir}/quail/ipa.el
CHINESE=${CHINESE-GB} ${CHINESE-BIG5} ${CHINESE-CNS}
EASTASIA=${CHINESE} ${JAPANESE} ${KOREAN}
ASIA=${EASTASIA} ${THAI} ${VIETNAMESE} ${LAO} ${INDIAN} ${TIBETAN}
-EUROPEAN=${LATIN} ${GREEK} ${RUSSIAN}
+EUROPEAN=${LATIN} ${SLAVIC} ${GREEK} ${RUSSIAN}
WORLD=${ASIA} ${EUROPEAN} ${MISC}
TIT=${CHINESE-TIT}
NON-TIT=${CHINESE-NON-TIT} ${JAPANESE} ${KOREAN} ${EUROPEAN} ${MISC}
-all: ${EMACS} ${SUBDIRS} ${TIT} leim-list.el
+all: ${BUILT-EMACS} ${SUBDIRS} ${TIT} leim-list.el
# To ensure that we can run Emacs. This target is ignored (never
# being hit) if a user changes default value of EMACS.
# Rule to generate quail/*.el from CXTERM-DIC/*.tit.
${TIT}:
- [ -d quail ] || mkdir quail
+ if [ -d quail ]; then true; else make quail; fi
${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
--eval '(batch-titdic-convert t)' -dir quail ${srcdir}/CXTERM-DIC
- ${RUN-EMACS} -f batch-byte-compile ${TIT}
+ ${RUN-EMACS} -l ${buildlisppath}/international/quail \
+ -f batch-byte-compile ${TIT}
-leim-list.el: ${SUBDIRS} ${TIT}
+leim-list.el: ${SUBDIRS} ${WORLD}
if [ x`(cd ${srcdir}; /bin/pwd)` = x`(/bin/pwd)` ] ; then \
${RUN-EMACS} -l ${buildlisppath}/international/quail \
--eval "(update-leim-list-file \".\")" ; \
rm -rf ${INSTALLDIR}/leim-list.el; \
rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/skk ; \
echo "Copying leim files to ${INSTALLDIR} ..." ; \
- cp leim-list.el ${INSTALLDIR} ; \
- tar -cf - leim-list.el ${SUBDIRS} \
+ if [ x`(cd ${srcdir}; /bin/pwd)` = x`(/bin/pwd)` ] ; then \
+ tar -cf - leim-list.el quail skk \
+ | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
+ else \
+ tar -cf - leim-list.el quail \
| (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
- if [ x`(cd ${srcdir}; /bin/pwd)` != x`(/bin/pwd)` ] ; then \
cd ${srcdir}; \
- tar -cf - ${SUBDIRS} \
+ tar -cf - quail/* skk \
| (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
- else true; fi; \
+ fi; \
else true; fi
+ -chmod -R a+r ${INSTALLDIR}
clean mostlyclean:
ELC=`echo ${TIT} | sed 's/\.el/.elc/g'`; \