# On Xenix and the IBM RS6000, double-dot gets screwed up.
dot = .
-dotdot = ${dot}${dot}
# 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.
-SUBDIRS=quail skk
+SUBDIRS=quail
# Files generated from TIT dictionaries for Chinese GB character set.
TIT-GB=\
quail/QJ-b5.el \
quail/ZOZY.el
-TIT=${TIT-GB} ${TIT-BIG5}
+CHINESE-TIT=${TIT-GB} ${TIT-BIG5}
-CHINESE-GB=${TIT-GB} \
- quail/py-punct.el
+NON-TIT-GB=${srcdir}/quail/py-punct.el
-CHINESE-BIG5=${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
-CHINESE-CNS=quail/quick-cns.el quail/tsang-cns.el
+NON-TIT-CNS=${srcdir}/quail/quick-cns.el ${srcdir}/quail/tsang-cns.el
-JAPANESE=quail/japanese.el skk/skkdic.el
+CHINESE-NON-TIT=${NON-TIT-GB} ${NON-TIT-BIG5} ${NON-TIT-CNS}
-KOREAN= quail/hangul.el \
- quail/hangul3.el \
- quail/hanja.el \
- quail/hanja-jis.el \
- quail/symbol-ksc.el
+CHINESE-GB=${TIT-GB} ${NON-TIT-GB}
-THAI=quail/thai.el
+CHINESE-BIG5=${TIT-BIG5} ${NON-TIT-BIG5}
-VIETNAMESE=quail/viqr.el
+CHINESE-CNS=${NON-TIT-CNS}
-LAO=quail/lao.el quail/lrt.el
+JAPANESE=${srcdir}/quail/japanese.el ${srcdir}/skk/skkdic.el
-INDIAN=quail/devanagari.el
+KOREAN= ${srcdir}/quail/hangul.el \
+ ${srcdir}/quail/hangul3.el \
+ ${srcdir}/quail/hanja.el \
+ ${srcdir}/quail/hanja-jis.el \
+ ${srcdir}/quail/symbol-ksc.el
-TIBETAN=quail/tibetan.el
+THAI=${srcdir}/quail/thai.el
-LATIN=quail/latin-pre.el quail/latin-post.el
+VIETNAMESE=${srcdir}/quail/viqr.el
-GREEK=quail/greek.el
+LAO=${srcdir}/quail/lao.el ${srcdir}/quail/lrt.el
-RUSSIAN=quail/cyrillic.el quail/cyril-jis.el
+INDIAN=${srcdir}/quail/devanagari.el
-MISC=quail/ethiopic.el quail/ipa.el
+TIBETAN=${srcdir}/quail/tibetan.el
+
+LATIN=${srcdir}/quail/latin-pre.el ${srcdir}/quail/latin-post.el
+
+SLAVIC= \
+ ${srcdir}/quail/czech.el \
+ ${srcdir}/quail/slovak.el
+
+GREEK=${srcdir}/quail/greek.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}
-all: ${EMACS} ${SUBDIRS} ${WORLD} leim-list.el
+TIT=${CHINESE-TIT}
+NON-TIT=${CHINESE-NON-TIT} ${JAPANESE} ${KOREAN} ${EUROPEAN} ${MISC}
+
+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}:
+ 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}
-
-# Emacs Lisp source files not generated from TIT dictionaries are
-# distributed as is. So, hitting this target means that ${srcdir} is
-# different from the current directory. In this case, we just make
-# links.
-%.el:
- @LN_S@ ${srcdir}/$@ $@
- @LN_S@ ${srcdir}/$@c $@c
-
-# Before running update-leim-list-file, delete all old files which are
-# not contained in ${WORLD}.
+ ${RUN-EMACS} -l ${buildlisppath}/international/quail \
+ -f batch-byte-compile ${TIT}
+
leim-list.el: ${SUBDIRS} ${WORLD}
- for dir in ${SUBDIRS}; do \
- for f in $${dir}/*.el; do \
- if echo ${WORLD} | grep $${f} > /dev/null; then true; \
- else rm -f $${f}* ; fi \
- done \
- done
- ${RUN-EMACS} -l ${buildlisppath}/international/quail \
- --eval "(update-leim-list-file \".\")"
+ if [ x`(cd ${srcdir}; /bin/pwd)` = x`(/bin/pwd)` ] ; then \
+ ${RUN-EMACS} -l ${buildlisppath}/international/quail \
+ --eval "(update-leim-list-file \".\")" ; \
+ else \
+ ${RUN-EMACS} -l ${buildlisppath}/international/quail \
+ --eval "(update-leim-list-file \".\" \"${srcdir}\")" ; \
+ fi
install: all
if [ x`(cd ${INSTALLDIR}; /bin/pwd)` != x`(/bin/pwd)` ] ; then \
rm -rf ${INSTALLDIR}/leim-list.el; \
rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/skk ; \
echo "Copying leim files to ${INSTALLDIR} ..." ; \
- tar -chf - leim-list.el ${SUBDIRS} \
- | (cd ${INSTALLDIR}; umask 0; tar -xvf -) ; \
+ 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) ;\
+ cd ${srcdir}; \
+ tar -cf - quail/* skk \
+ | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
+ fi; \
else true; fi
+ -chmod -R a+r ${INSTALLDIR}
clean mostlyclean:
ELC=`echo ${TIT} | sed 's/\.el/.elc/g'`; \