tamago-4.0.6
[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
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
62 #
63 ITSSRCS = \
64         its/ascii.el \
65         its/bixing.el \
66         its/erpin.el \
67         its/hankata.el \
68         its/hira.el \
69         its/jeonkak.el \
70         its/pinyin.el \
71         its/hangul.el \
72         its/kata.el \
73         its/thai.el \
74         its/quanjiao.el \
75         its/zenkaku.el \
76         its/zhuyin.el \
77
78 #
79 ELCS    = ${SRCS:.el=.elc}
80
81 TOPELCS = ${TOPSRCS:.el=.elc}
82
83 EGGELCS = ${EGGSRCS:.el=.elc}
84
85 ITSELCS = ${ITSSRCS:.el=.elc}
86
87 DIST    = ${ETCS} ${SRCS} ${INITELS}
88
89 all: ${ELCS}
90
91 .SUFFIXES: .el .elc
92
93 .el.elc:
94         ${EMACS} ${BATCHFLAGS} ${DEPS} -f batch-byte-compile $<
95
96 clean: 
97         rm -f ${ELCS} *~ */*~ \#* .\#* */\#* */.\#*
98
99 distclean: 
100         rm -f ${ELCS} config.* Makefile 
101
102 install: install-site
103
104 install-site: all
105         echo "Egg system will be installed in ${lispdir}/egg...."; \
106         if [ -d ${lispdir}/egg ]; then \
107           echo "Clean up the previsous installation...."; \
108           rm -rf ${lispdir}/egg/*;  \
109         else \
110           echo "Make the directory ${lispdir}/egg..."; \
111           mkdir ${lispdir}/egg; \
112         fi; \
113 #
114         for FILE in ${TOPSRCS} ${TOPELCS} ${INITELS}; \
115           do  \
116             ${INSTALL_DATA}  $${FILE} ${lispdir}/egg/; \
117           done; \
118 #
119         mkdir ${lispdir}/egg/egg ; \
120         for FILE in ${EGGSRCS} ${EGGELCS} ; \
121           do  \
122             ${INSTALL_DATA}  $${FILE} ${lispdir}/egg/egg; \
123           done; \
124 #
125         mkdir ${lispdir}/egg/its ; \
126         for FILE in ${ITSSRCS} ${ITSELCS} ; \
127           do  \
128             ${INSTALL_DATA}  $${FILE} ${lispdir}/egg/its ; \
129           done; \
130
131
132 uninstall-site:
133         if [ -d ${lispdir}/egg ]; then \
134           rm -rf ${lispdir}/egg; \
135         fi
136
137 # DEPENDENCIES
138 egg/sj3rpc.elc: egg-com.elc egg/sj3.elc
139 egg/wnnrpc.elc: egg-com.elc egg/wnn.elc
140
141 egg.elc its/ascii.elc its/erpin.elc its/hankata.elc \
142 its/hira.elc its/jeonkak.elc its/pinyin.elc \
143 its/hangul.elc its/kata.elc its/quanjiao.elc \
144 its/zenkaku.elc its/zhuyin.elc: its-keydef.elc
145
146