anthy
[elisp/tamago.git] / Makefile.in
1 # Makefile --- Makefile of EGG V4.0
2
3 # Copyright (C) 1999, 2000 Free Software Foundation, Inc
4 # Author: NIIBE Yutaka <gniibe@chroot.org>
5 #         TOMURA Satoru <tomura@etl.go.jp>
6 # Maintaner: Satoru Tomura <tomura@etl.go.jp>
7
8 .SUFFIXES:
9 SHELL   = @SHELL@
10
11 #------------------------------------------------
12 #  Configuration parameters
13 #------------------------------------------------
14 # emacs you use
15 EMACS   = emacs
16 # emacs lisp installation directory
17 lispdir = @lispdir@
18 #------------------------------------------------
19
20 prefix  = @prefix@
21 INSTALL = @INSTALL@
22 INSTALL_PROGRAM = @INSTALL_PROGRAM@
23 INSTALL_SCRIPT = @INSTALL_SCRIPT@
24 INSTALL_DATA = @INSTALL_DATA@
25 INSTALL_INFO = install-info
26
27 #---------------------------------------
28 # (1) make
29 #       ;; compile *.el files
30 # (2) make install
31 #       ;; install files into the emacs site-lisp directory
32 #       ;; ex. /usr/local/share/emacs/site-lisp/egg
33
34 DEPS    = -l ./docomp.el -l ./jisx0213.el
35 BATCHFLAGS      = -batch -q -no-site-file -no-init-file
36
37 ETCS    = Makefile docomp.el \
38         AUTHORS ChangeLog README TODO PROBLEMS
39
40 INITELS = eggrc leim-list.el
41
42 SRCS    = ${TOPSRCS} ${EGGSRCS} ${ITSSRCS}
43
44 TOPSRCS = \
45         egg.el \
46         egg-edep.el \
47         egg-com.el \
48         egg-cnv.el \
49         egg-util.el \
50         egg-mlh.el \
51         egg-sim.el \
52         menudiag.el \
53         its.el \
54         its-keydef.el \
55
56 #
57 EGGSRCS = \
58         egg/cannarpc.el egg/canna.el \
59         egg/sj3rpc.el egg/sj3.el \
60         egg/wnnrpc.el egg/wnn.el \
61         egg/anthyipc.el egg/anthy.el
62
63 #
64 ITSSRCS = \
65         its/ascii.el \
66         its/aynu.el \
67         its/bixing.el \
68         its/erpin.el \
69         its/hankata.el \
70         its/hira.el \
71         its/jeonkak.el \
72         its/pinyin.el \
73         its/hangul.el \
74         its/kata.el \
75         its/thai.el \
76         its/quanjiao.el \
77         its/zenkaku.el \
78         its/zhuyin.el \
79
80 #
81 ELCS    = ${SRCS:.el=.elc}
82
83 TOPELCS = ${TOPSRCS:.el=.elc}
84
85 EGGELCS = ${EGGSRCS:.el=.elc}
86
87 ITSELCS = ${ITSSRCS:.el=.elc}
88
89 DIST    = ${ETCS} ${SRCS} ${INITELS}
90
91 all: ${ELCS}
92
93 .SUFFIXES: .el .elc
94
95 .el.elc:
96         ${EMACS} ${BATCHFLAGS} ${DEPS} -f batch-byte-compile $<
97
98 clean: 
99         rm -f ${ELCS} *~ */*~ \#* .\#* */\#* */.\#*
100
101 distclean: 
102         rm -f ${ELCS} config.* Makefile 
103
104 install: install-site
105
106 install-site: all
107         echo "Egg system will be installed in ${lispdir}/egg...."; \
108         if [ -d ${lispdir}/egg ]; then \
109           echo "Clean up the previsous installation...."; \
110           rm -rf ${lispdir}/egg/*;  \
111         else \
112           echo "Make the directory ${lispdir}/egg..."; \
113           mkdir ${lispdir}/egg; \
114         fi; \
115 #
116         for FILE in ${TOPSRCS} ${TOPELCS} ${INITELS}; \
117           do  \
118             ${INSTALL_DATA}  $${FILE} ${lispdir}/egg/; \
119           done; \
120 #
121         mkdir ${lispdir}/egg/egg ; \
122         for FILE in ${EGGSRCS} ${EGGELCS} ; \
123           do  \
124             ${INSTALL_DATA}  $${FILE} ${lispdir}/egg/egg; \
125           done; \
126 #
127         mkdir ${lispdir}/egg/its ; \
128         for FILE in ${ITSSRCS} ${ITSELCS} ; \
129           do  \
130             ${INSTALL_DATA}  $${FILE} ${lispdir}/egg/its ; \
131           done; \
132
133
134 uninstall-site:
135         if [ -d ${lispdir}/egg ]; then \
136           rm -rf ${lispdir}/egg; \
137         fi
138
139 # DEPENDENCIES
140 egg/sj3rpc.elc: egg-com.elc egg/sj3.elc
141 egg/wnnrpc.elc: egg-com.elc egg/wnn.elc
142
143 egg.elc its/ascii.elc its/aynu.elc its/erpin.elc \
144 its/hankata.elc its/hira.elc its/jeonkak.elc its/pinyin.elc \
145 its/hangul.elc its/kata.elc its/quanjiao.elc \
146 its/zenkaku.elc its/zhuyin.elc: its-keydef.elc
147
148