1 # Makefile --- Makefile of EGG V4.0
3 # Copyright (C) 1997, 1998 Mule Project,
4 # Powered by ElectrotechnicalLaboratory, JAPAN.
5 # Project Leader: Satoru Tomura <tomura@etl.go.jp>
7 DOTEMACS=/home/niibe/.emacs
8 LEIMDIR=/usr/local/share/emacs/20.2.892/leim
9 SITEDIR=/usr/local/share/emacs/site-lisp
11 INSTALL=/usr/bin/install
15 BATCHFLAGS = -batch -q -no-site-file
20 ETCS = Makefile leim-list-egg.el AUTHORS ChangeLog README TODO docomp.el \
23 SRCS = menudiag.el its.el egg-edep.el \
37 egg-mlh.el egg-cnv.el egg-com.el \
39 egg/cannarpc.el egg/canna.el \
40 egg/sj3rpc.el egg/sj3.el \
41 egg/wnnrpc.el egg/wnn.el
43 ELCS = ${SRCS:.el=.elc}
45 DIST = ${ETCS} ${SRCS}
48 ${EMACS} ${BATCHFLAGS} ${DEPS} -f batch-byte-compile $<
53 rm -f ${ELCS} leim-list.el
56 @if (grep "^;;; Emacs/Egg Configuration" $(DOTEMACS) 2>&1) >/dev/null; then \
57 echo Emacs/Egg setup already exists in $(DOTEMACS); \
59 (echo >> $(DOTEMACS)); \
60 (echo ";;; Emacs/Egg Configuration" >> $(DOTEMACS)); \
61 (echo "(require 'egg)" >> $(DOTEMACS)); \
62 echo "Added Emacs/Egg setup to $(DOTEMACS)"; \
66 @if (grep ";;; Egg" ${LEIMDIR}/leim-list.el 2>&1) >/dev/null; then \
67 echo Egg setup already exists in ${LEIMDIR}/leim-list.el; \
68 cat ${LEIMDIR}/leim-list.el >leim-list.el; \
70 cat ${LEIMDIR}/leim-list.el leim-list-egg.el >leim-list.el; \
74 for d in its egg; do \
75 if [ ! -d ${SITEDIR}/$$d ]; then mkdir -p ${SITEDIR}/$$d; fi; \
78 install: all install-dirs
79 for x in ${SRCS} ${ELCS}; do $(INSTALL) -m 644 $$x ${SITEDIR}/`dirname $$x`; done
80 @echo -n "### See leim-list-egg.el for registering input method"
81 @echo " (if you haven't yet)."
84 egg/sj3rpc.elc: egg-com.elc egg/sj3.elc
85 egg/wnnrpc.elc: egg-com.elc egg/wnn.elc
87 egg.elc its/ascii.elc its/erpin.elc its/hankata.elc \
88 its/hira.elc its/jeonkak.elc its/pinyin.elc \
89 its/hangul.elc its/kata.elc its/quanjiao.elc \
90 its/zenkaku.elc its/zhuyin.elc: its-keydef.elc
93 rm -f ${ELCS} leim-list.el *~
95 ### Source code maintainance
96 DATE=$(shell date "+%y%m%d")
101 tar -c -f - ${DIST} | tar Cxf ../egg-${DATE} -
102 (cd ../egg-${DATE}; \
103 sed "/^### Source code maintainance/,\$$d" <Makefile >Makefile.dist; \
104 mv -f Makefile.dist Makefile)
105 (cd ..; tar cvzf egg-${DATE}.tar.gz egg-${DATE})
107 working-ss: distclean
108 rm -rf ../egg-snap-${DATE}
109 mkdir ../egg-snap-${DATE}
110 tar -c -f - . | tar Cxf ../egg-snap-${DATE} -
111 (cd ..; tar cvzf egg-snap-${DATE}.tar.gz egg-snap-${DATE})