diff options
| author | Gerd Moellmann | 1999-11-22 14:41:06 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-11-22 14:41:06 +0000 |
| commit | b37434d30e9f519464890e10df991f98c22f93a2 (patch) | |
| tree | 85bb9de5cb7b2875ec051f45f768c7e86a0a720d | |
| parent | 460c6535ffae1eae1caa7bfb1efbdec96ec5cbda (diff) | |
| download | emacs-b37434d30e9f519464890e10df991f98c22f93a2.tar.gz emacs-b37434d30e9f519464890e10df991f98c22f93a2.zip | |
Leim makefile for NT.
| -rw-r--r-- | leim/makefile.nt | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/leim/makefile.nt b/leim/makefile.nt new file mode 100644 index 00000000000..da12e6f1411 --- /dev/null +++ b/leim/makefile.nt | |||
| @@ -0,0 +1,173 @@ | |||
| 1 | # Makefile for leim subdirectory in GNU Emacs on the Microsoft W32 API. | ||
| 2 | # Copyright (C) 1997 Electrotechnical Laboratory, JAPAN. | ||
| 3 | # Licensed to the Free Software Foundation. | ||
| 4 | |||
| 5 | # This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | # GNU Emacs is free software; you can redistribute it and/or modify | ||
| 8 | # it under the terms of the GNU General Public License as published by | ||
| 9 | # the Free Software Foundation; either version 2, or (at your option) | ||
| 10 | # any later version. | ||
| 11 | # | ||
| 12 | # GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | # GNU General Public License for more details. | ||
| 16 | # | ||
| 17 | # You should have received a copy of the GNU General Public License | ||
| 18 | # along with GNU Emacs; see the file COPYING. If not, write to the | ||
| 19 | # Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
| 20 | # Boston, MA 02111-1307, USA. | ||
| 21 | |||
| 22 | # | ||
| 23 | # Sets up the system dependent macros. | ||
| 24 | # | ||
| 25 | !include ..\nt\makefile.def | ||
| 26 | |||
| 27 | srcdir=. | ||
| 28 | |||
| 29 | # Where to install LEIM files. | ||
| 30 | INSTALLDIR=$(INSTALL_DIR)\leim | ||
| 31 | |||
| 32 | # On Xenix and the IBM RS6000, double-dot gets screwed up. | ||
| 33 | dot = . | ||
| 34 | |||
| 35 | # Which Emacs to use to convert TIT files to Emacs Lisp files, | ||
| 36 | # byte-compile Emacs Lisp files, and generate the file leim-list.el. | ||
| 37 | BUILT_EMACS = $(dot)$(dot)\src\$(BLD)\emacs.exe | ||
| 38 | |||
| 39 | buildlisppath=$(dot)$(dot)/lisp | ||
| 40 | |||
| 41 | # How to run Emacs. | ||
| 42 | RUN_EMACS = $(BUILT_EMACS) -batch --no-init-file --no-site-file --multibyte | ||
| 43 | |||
| 44 | # Subdirectories to be made if $(srcdir) is different from the current | ||
| 45 | # directory. | ||
| 46 | SUBDIRS=quail | ||
| 47 | |||
| 48 | # Files generated from TIT dictionaries for Chinese GB character set. | ||
| 49 | TIT_GB=\ | ||
| 50 | quail/CTLau.el \ | ||
| 51 | quail/CCDOSPY.el \ | ||
| 52 | quail/Punct.el \ | ||
| 53 | quail/PY.el \ | ||
| 54 | quail/QJ.el \ | ||
| 55 | quail/SW.el \ | ||
| 56 | quail/TONEPY.el \ | ||
| 57 | quail/ZIRANMA.el | ||
| 58 | |||
| 59 | # Files generated from TIT dictionaries for Chinese BIG5 character set. | ||
| 60 | TIT_BIG5=\ | ||
| 61 | quail/4Corner.el \ | ||
| 62 | quail/ARRAY30.el \ | ||
| 63 | quail/CTLauB.el \ | ||
| 64 | quail/ECDICT.el \ | ||
| 65 | quail/ETZY.el \ | ||
| 66 | quail/Punct-b5.el \ | ||
| 67 | quail/PY-b5.el \ | ||
| 68 | quail/QJ-b5.el \ | ||
| 69 | quail/ZOZY.el | ||
| 70 | |||
| 71 | CHINESE_TIT=$(TIT_GB) $(TIT_BIG5) | ||
| 72 | |||
| 73 | NON_TIT_GB=$(srcdir)/quail/py-punct.el | ||
| 74 | |||
| 75 | NON_TIT_BIG5=$(srcdir)/quail/quick-b5.el $(srcdir)/quail/tsang-b5.el \ | ||
| 76 | $(srcdir)/quail/pypunct-b5.el | ||
| 77 | |||
| 78 | NON_TIT_CNS=$(srcdir)/quail/quick-cns.el $(srcdir)/quail/tsang-cns.el | ||
| 79 | |||
| 80 | CHINESE_NON_TIT=$(NON_TIT_GB) $(NON_TIT_BIG5) $(NON_TIT_CNS) | ||
| 81 | |||
| 82 | CHINESE_GB=$(TIT_GB) $(NON_TIT_GB) | ||
| 83 | |||
| 84 | CHINESE_BIG5=$(TIT_BIG5) $(NON_TIT_BIG5) | ||
| 85 | |||
| 86 | CHINESE_CNS=$(NON_TIT_CNS) | ||
| 87 | |||
| 88 | JAPANESE=$(srcdir)/quail/japanese.el $(srcdir)/skk/skkdic.el | ||
| 89 | |||
| 90 | KOREAN= $(srcdir)/quail/hangul.el \ | ||
| 91 | $(srcdir)/quail/hangul3.el \ | ||
| 92 | $(srcdir)/quail/hanja.el \ | ||
| 93 | $(srcdir)/quail/hanja-jis.el \ | ||
| 94 | $(srcdir)/quail/symbol-ksc.el | ||
| 95 | |||
| 96 | THAI=$(srcdir)/quail/thai.el | ||
| 97 | |||
| 98 | VIETNAMESE=$(srcdir)/quail/viqr.el | ||
| 99 | |||
| 100 | LAO=$(srcdir)/quail/lao.el $(srcdir)/quail/lrt.el | ||
| 101 | |||
| 102 | INDIAN=$(srcdir)/quail/devanagari.el | ||
| 103 | |||
| 104 | TIBETAN=$(srcdir)/quail/tibetan.el | ||
| 105 | |||
| 106 | LATIN=$(srcdir)/quail/latin-pre.el $(srcdir)/quail/latin-post.el | ||
| 107 | |||
| 108 | SLAVIC= \ | ||
| 109 | $(srcdir)/quail/czech.el \ | ||
| 110 | $(srcdir)/quail/slovak.el | ||
| 111 | |||
| 112 | GREEK=$(srcdir)/quail/greek.el | ||
| 113 | |||
| 114 | RUSSIAN=$(srcdir)/quail/cyrillic.el $(srcdir)/quail/cyril-jis.el | ||
| 115 | |||
| 116 | MISC= \ | ||
| 117 | $(srcdir)/quail/ethiopic.el \ | ||
| 118 | $(srcdir)/quail/ipa.el \ | ||
| 119 | $(srcdir)/quail/hebrew.el | ||
| 120 | |||
| 121 | CHINESE=$(CHINESE_GB) $(CHINESE_BIG5) $(CHINESE_CNS) | ||
| 122 | EASTASIA=$(CHINESE) $(JAPANESE) $(KOREAN) | ||
| 123 | ASIA=$(EASTASIA) $(THAI) $(VIETNAMESE) $(LAO) $(INDIAN) $(TIBETAN) | ||
| 124 | EUROPEAN=$(LATIN) $(SLAVIC) $(GREEK) $(RUSSIAN) | ||
| 125 | WORLD=$(ASIA) $(EUROPEAN) $(MISC) | ||
| 126 | |||
| 127 | TIT=$(CHINESE_TIT) | ||
| 128 | NON_TIT=$(CHINESE_NON_TIT) $(JAPANESE) $(KOREAN) $(EUROPEAN) $(MISC) | ||
| 129 | |||
| 130 | all: $(BUILT_EMACS) $(SUBDIRS) $(TIT) leim-list.el | ||
| 131 | |||
| 132 | # To ensure that we can run Emacs. This target is ignored (never | ||
| 133 | # being hit) if a user changes default value of EMACS. | ||
| 134 | $(dot)$(dot)/src/emacs: | ||
| 135 | cd ../src; $(MAKE) $(MFLAGS) emacs | ||
| 136 | |||
| 137 | $(SUBDIRS): | ||
| 138 | mkdir $@ | ||
| 139 | echo stamp>stamp-subdir | ||
| 140 | echo (if (fboundp 'normal-top-level-add-subdirs-to-load-path) >subdirs.el | ||
| 141 | echo (normal-top-level-add-subdirs-to-load-path)) >>subdirs.el | ||
| 142 | |||
| 143 | # Rule to generate quail/*.el from CXTERM-DIC/*.tit. | ||
| 144 | $(TIT): | ||
| 145 | if not exist quail $(MAKE) -f makefile.nt quail | ||
| 146 | $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \ | ||
| 147 | --eval "(batch-titdic-convert t)" -dir quail $(srcdir)/CXTERM-DIC | ||
| 148 | $(RUN_EMACS) -l $(buildlisppath)/international/quail \ | ||
| 149 | -f batch-byte-compile $(TIT) | ||
| 150 | |||
| 151 | leim-list.el: $(SUBDIRS) $(WORLD) | ||
| 152 | $(RUN_EMACS) -l $(buildlisppath)/international/quail \ | ||
| 153 | --eval "(update-leim-list-file \".\")" | ||
| 154 | |||
| 155 | install: all | ||
| 156 | - mkdir $(INSTALLDIR) | ||
| 157 | - $(DEL) same-dir.tst | ||
| 158 | - $(DEL) $(INSTALLDIR)\same-dir.tst | ||
| 159 | echo SameDirTest > $(INSTALLDIR)\same-dir.tst | ||
| 160 | if not exist same-dir.tst $(CP) leim-list.el $(INSTALLDIR) | ||
| 161 | if not exist same-dir.tst $(CP) subdirs.el $(INSTALLDIR) | ||
| 162 | if not exist same-dir.tst $(CP_DIR) quail $(INSTALLDIR)\quail | ||
| 163 | if not exist same-dir.tst $(CP_DIR) skk $(INSTALLDIR)\skk | ||
| 164 | - $(DEL) $(INSTALLDIR)\same-dir.tst | ||
| 165 | |||
| 166 | clean mostlyclean: | ||
| 167 | for %%f in ($(TIT:/=\)) do $(DEL) %%fc | ||
| 168 | for %%f in ($(TIT:/=\)) do $(DEL) %%f | ||
| 169 | $(DEL) leim-list.el | ||
| 170 | |||
| 171 | distclean maintainer-clean: | ||
| 172 | if exist stamp-subdir $(DELTREE) $(SUBDIRS) | ||
| 173 | $(DEL) stamp-subdir | ||