OSDN Git Service

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