tamago-4.0.3
[elisp/tamago.git] / Makefile
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 #---------------------------------------
9 # (1) make
10 #       ;; compile *.el files
11 # (2) make install
12 #       ;; install files into the emacs site-lisp directory
13 #       ;; ex. /usr/local/share/emacs/site-lisp/egg
14 #------------------------------------------------
15 #  Configuration parameters
16 #------------------------------------------------
17 # emacs you use
18 EMACS   = /usr/local/bin/emacs
19 # Programs
20 INSTALL = /usr/sbin/install
21 CP      = /bin/cp
22 MV      = /bin/mv
23 RM      = /bin/rm
24 MKDIR   = /usr/bin/mkdir
25 #------------------------------------------------
26
27 DEPS    = -l ./docomp.el
28 BATCHFLAGS      = -batch -q -no-site-file -no-init-file
29
30 ETCS    = Makefile docomp.el make-insdirs.el \
31         AUTHORS ChangeLog README TODO PROBLEMS
32
33 ELS     = eggrc leim-list.el
34
35 SRCS    = egg-util.el \
36         menudiag.el its.el egg-edep.el \
37         its/ascii.el \
38         its/bixing.el \
39         its/erpin.el \
40         its/hankata.el \
41         its/hira.el \
42         its/jeonkak.el \
43         its/pinyin.el \
44         its/hangul.el \
45         its/kata.el \
46         its/thai.el \
47         its/quanjiao.el \
48         its/zenkaku.el \
49         its/zhuyin.el \
50         its-keydef.el \
51         egg-mlh.el egg-cnv.el egg-com.el \
52         egg.el \
53         egg/cannarpc.el egg/canna.el \
54         egg/sj3rpc.el egg/sj3.el \
55         egg/wnnrpc.el egg/wnn.el 
56
57 ELCS    = ${SRCS:.el=.elc}
58
59 DIST    = ${ETCS} ${SRCS} ${ELS}
60
61 .SUFFIXES: .el .elc
62
63 .el.elc:
64         ${EMACS} ${BATCHFLAGS} ${DEPS} -f batch-byte-compile $<
65
66 all: ${ELCS} insdirs
67
68 insdirs:   ${EMACS}
69         @${EMACS} ${BATCHFLAGS} -l ./make-insdirs.el 2> /dev/null
70
71 clean: 
72         ${RM} -f ${ELCS} insdirs *~ */*~
73
74 install: install-site
75
76 install-site: all
77         @. ./insdirs; \
78         echo "Egg system will be installed in $${INSDIR}/egg...."; \
79         if [ -d $${INSDIR}/egg ]; then \
80           echo "Clean up the previsous installation...."; \
81           ${RM} -rf $${INSDIR}/egg; fi ; \
82         mkdir -p $${INSDIR}/egg; \
83         tar cf - ${SRCS} ${ELCS} ${ELS} | (cd $${INSDIR}/egg && tar xpBf -)
84
85 uninstall-site:
86         @. ./insdirs; \
87         if [ -d $${INSDIR}/egg ]; then \
88           ${RM} -rf $${INSDIR}/egg; \
89         fi
90
91 # DEPENDENCIES
92 egg/sj3rpc.elc: egg-com.elc egg/sj3.elc
93 egg/wnnrpc.elc: egg-com.elc egg/wnn.elc
94
95 egg.elc its/ascii.elc its/erpin.elc its/hankata.elc \
96 its/hira.elc its/jeonkak.elc its/pinyin.elc \
97 its/hangul.elc its/kata.elc its/quanjiao.elc \
98 its/zenkaku.elc its/zhuyin.elc: its-keydef.elc
99
100