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