--- /dev/null
+# Makefile for leim subdirectory in GNU Emacs on the Microsoft W32 API.\r
+# Copyright (C) 1997 Electrotechnical Laboratory, JAPAN.\r
+# Licensed to the Free Software Foundation.\r
+\r
+# This file is part of GNU Emacs.\r
+\r
+# GNU Emacs is free software; you can redistribute it and/or modify\r
+# it under the terms of the GNU General Public License as published by\r
+# the Free Software Foundation; either version 2, or (at your option)\r
+# any later version.\r
+#\r
+# GNU Emacs is distributed in the hope that it will be useful,\r
+# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+# GNU General Public License for more details.\r
+#\r
+# You should have received a copy of the GNU General Public License\r
+# along with GNU Emacs; see the file COPYING. If not, write to the\r
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,\r
+# Boston, MA 02111-1307, USA.\r
+\r
+srcdir=.\r
+\r
+# Where to install LEIM files.\r
+INSTALLDIR=$(INSTALL_DIR)\leim\r
+\r
+# On Xenix and the IBM RS6000, double-dot gets screwed up.\r
+dot = .\r
+\r
+# Which Emacs to use to convert TIT files to Emacs Lisp files,\r
+# byte-compile Emacs Lisp files, and generate the file leim-list.el.\r
+BUILT_EMACS = $(dot)$(dot)/src/$(BLD)/emacs.exe\r
+\r
+buildlisppath=$(dot)$(dot)/lisp\r
+\r
+# How to run Emacs.\r
+RUN_EMACS = "$(BUILT_EMACS)" -batch --no-init-file --no-site-file --multibyte\r
+\r
+# Subdirectories to be made if $(srcdir) is different from the current\r
+# directory.\r
+SUBDIRS=quail\r
+\r
+# Files generated from TIT dictionaries for Chinese GB character set.\r
+TIT_GB=\\r
+ quail/CTLau.el \\r
+ quail/CCDOSPY.el \\r
+ quail/Punct.el \\r
+ quail/PY.el \\r
+ quail/QJ.el \\r
+ quail/SW.el \\r
+ quail/TONEPY.el \\r
+ quail/ZIRANMA.el\r
+\r
+# Files generated from TIT dictionaries for Chinese BIG5 character set.\r
+TIT_BIG5=\\r
+ quail/4Corner.el \\r
+ quail/ARRAY30.el \\r
+ quail/CTLauB.el \\r
+ quail/ECDICT.el \\r
+ quail/ETZY.el \\r
+ quail/Punct-b5.el \\r
+ quail/PY-b5.el \\r
+ quail/QJ-b5.el \\r
+ quail/ZOZY.el\r
+\r
+CHINESE_TIT=$(TIT_GB) $(TIT_BIG5)\r
+\r
+NON_TIT_GB=$(srcdir)/quail/py-punct.el\r
+\r
+NON_TIT_BIG5=$(srcdir)/quail/quick-b5.el $(srcdir)/quail/tsang-b5.el \\r
+ $(srcdir)/quail/pypunct-b5.el\r
+\r
+NON_TIT_CNS=$(srcdir)/quail/quick-cns.el $(srcdir)/quail/tsang-cns.el\r
+\r
+CHINESE_NON_TIT=$(NON_TIT_GB) $(NON_TIT_BIG5) $(NON_TIT_CNS)\r
+\r
+CHINESE_GB=$(TIT_GB) $(NON_TIT_GB)\r
+\r
+CHINESE_BIG5=$(TIT_BIG5) $(NON_TIT_BIG5) \r
+\r
+CHINESE_CNS=$(NON_TIT_CNS) \r
+\r
+JAPANESE=$(srcdir)/quail/japanese.el $(srcdir)/ja-dic/ja-dic.el\r
+\r
+KOREAN= $(srcdir)/quail/hangul.el \\r
+ $(srcdir)/quail/hangul3.el \\r
+ $(srcdir)/quail/hanja.el \\r
+ $(srcdir)/quail/hanja-jis.el \\r
+ $(srcdir)/quail/symbol-ksc.el\r
+\r
+THAI=$(srcdir)/quail/thai.el\r
+\r
+VIETNAMESE=$(srcdir)/quail/viqr.el\r
+\r
+LAO=$(srcdir)/quail/lao.el $(srcdir)/quail/lrt.el\r
+\r
+INDIAN=$(srcdir)/quail/devanagari.el\r
+\r
+TIBETAN=$(srcdir)/quail/tibetan.el\r
+\r
+LATIN=$(srcdir)/quail/latin-pre.el $(srcdir)/quail/latin-post.el\r
+\r
+SLAVIC= \\r
+ $(srcdir)/quail/czech.el \\r
+ $(srcdir)/quail/slovak.el\r
+\r
+GREEK=$(srcdir)/quail/greek.el\r
+\r
+RUSSIAN=$(srcdir)/quail/cyrillic.el $(srcdir)/quail/cyril-jis.el\r
+\r
+MISC= \\r
+ $(srcdir)/quail/ethiopic.el \\r
+ $(srcdir)/quail/ipa.el \\r
+ $(srcdir)/quail/hebrew.el\r
+\r
+CHINESE=$(CHINESE_GB) $(CHINESE_BIG5) $(CHINESE_CNS)\r
+EASTASIA=$(CHINESE) $(JAPANESE) $(KOREAN)\r
+ASIA=$(EASTASIA) $(THAI) $(VIETNAMESE) $(LAO) $(INDIAN) $(TIBETAN)\r
+EUROPEAN=$(LATIN) $(SLAVIC) $(GREEK) $(RUSSIAN)\r
+WORLD=$(ASIA) $(EUROPEAN) $(MISC)\r
+\r
+TIT=$(CHINESE_TIT)\r
+NON_TIT=$(CHINESE_NON_TIT) $(JAPANESE) $(KOREAN) $(EUROPEAN) $(MISC)\r
+\r
+all: $(BUILT_EMACS) $(SUBDIRS) $(TIT) leim-list.el\r
+\r
+# To ensure that we can run Emacs. This target is ignored (never\r
+# being hit) if a user changes default value of EMACS.\r
+$(dot)$(dot)/src/emacs:\r
+ cd ../src; $(MAKE) $(MFLAGS) emacs\r
+\r
+$(SUBDIRS):\r
+ mkdir "$@"\r
+ echo stamp>stamp-subdir\r
+\r
+# Rule to generate quail/*.el from CXTERM-DIC/*.tit.\r
+$(TIT):\r
+# if not exist quail $(MAKE) quail\r
+ set emacs_dir=$(INSTALL_DIR)\r
+ $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \\r
+ --eval $(ARGQUOTE)(batch-titdic-convert t)$(ARGQUOTE) -dir quail $(srcdir)/CXTERM-DIC\r
+ $(RUN_EMACS) -l $(buildlisppath)/international/quail \\r
+ -f batch-byte-compile $(TIT)\r
+\r
+leim-list.el: $(SUBDIRS) $(WORLD)\r
+ set emacs_dir=$(INSTALL_DIR)\r
+ $(RUN_EMACS) -l $(buildlisppath)/international/quail \\r
+ --eval $(ARGQUOTE)(update-leim-list-file $(DQUOTE).$(DQUOTE))$(ARGQUOTE)\r
+\r
+install: all\r
+ - mkdir "$(INSTALLDIR)"\r
+ - $(DEL) same-dir.tst\r
+ - $(DEL) $(INSTALL_DIR)/same-dir.tst\r
+ echo SameDirTest > $(INSTALL_DIR)/same-dir.tst\r
+ $(IFNOTSAMEDIR) $(CP) leim-list.el $(INSTALLDIR) $(ENDIF)\r
+ $(IFNOTSAMEDIR) $(CP_DIR) quail $(INSTALLDIR)/quail $(ENDIF)\r
+ $(IFNOTSAMEDIR) $(CP_DIR) ja-dic $(INSTALLDIR)/ja-dic $(ENDIF)\r
+ - $(DEL) $(INSTALL_DIR)/same-dir.tst\r
+\r
+clean mostlyclean:\r
+ $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR)c $(ENDFOR)\r
+ $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)\r
+ $(DEL) leim-list.el\r
+\r
+distclean maintainer-clean:\r
+ if exist stamp-subdir $(DELTREE) $(SUBDIRS)\r
+ $(DEL) stamp-subdir\r