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.el \
36 egg-mlh.el egg-cnv.el egg-com.el \
37 egg/sj3.el egg/sj3rpc.el \
38 egg/wnn.el egg/wnnrpc.el
40 ELCS = ${SRCS:.el=.elc}
42 DIST = ${ETCS} ${SRCS}
45 ${EMACS} ${BATCHFLAGS} ${DEPS} -f batch-byte-compile $<
50 rm -f ${ELCS} leim-list.el
53 @if (grep "^;;; Emacs/Egg Configuration" $(DOTEMACS) 2>&1) >/dev/null; then \
54 echo Emacs/Egg setup already exists in $(DOTEMACS); \
56 (echo >> $(DOTEMACS)); \
57 (echo ";;; Emacs/Egg Configuration" >> $(DOTEMACS)); \
58 (echo "(require 'egg)" >> $(DOTEMACS)); \
59 echo "Added Emacs/Egg setup to $(DOTEMACS)"; \
63 @if (grep ";;; Egg" ${LEIMDIR}/leim-list.el 2>&1) >/dev/null; then \
64 echo Egg setup already exists in ${LEIMDIR}/leim-list.el; \
65 cat ${LEIMDIR}/leim-list.el >leim-list.el; \
67 cat ${LEIMDIR}/leim-list.el leim-list-egg.el >leim-list.el; \
71 for d in its egg; do \
72 if [ ! -d ${SITEDIR}/$$d ]; then mkdir -p ${SITEDIR}/$$d; fi; \
75 install: all dotemacs leim-list.el install-dirs
76 for x in ${SRCS} ${ELCS}; do $(INSTALL) -m 644 $$x ${SITEDIR}/`dirname $$x`; done
77 $(INSTALL) -m 644 leim-list.el ${SITEDIR}
80 egg/sj3rpc.elc: egg-com.elc egg/sj3.elc
81 egg/wnnrpc.elc: egg-com.elc egg/wnn.elc
83 egg.elc its/ascii.elc its/erpin.elc its/hankata.elc \
84 its/hira.elc its/jeonkak.elc its/pinyin.elc \
85 its/hangul.elc its/kata.elc its/quanjiao.elc \
86 its/zenkaku.elc its/zhuyin.elc: its-keydef.elc
89 rm -f ${ELCS} leim-list.el *~
91 ### Source code maintainance
92 DATE=$(shell date "+%y%m%d")
97 tar -c -f - ${DIST} | tar Cxf ../egg-${DATE} -
99 sed "/^### Source code maintainance/,\$$d" <Makefile >Makefile.dist; \
100 mv -f Makefile.dist Makefile)
101 (cd ..; tar cvzf egg-${DATE}.tar.gz egg-${DATE})
103 working-ss: distclean
104 rm -rf ../egg-snap-${DATE}
105 mkdir ../egg-snap-${DATE}
106 tar -c -f - . | tar Cxf ../egg-snap-${DATE} -
107 (cd ..; tar cvzf egg-snap-${DATE}.tar.gz egg-snap-${DATE})