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/lib/emacs/20.2/leim
9 SITEDIR=/usr/lib/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
22 SRCS = menudiag.el its.el egg.el \
27 egg-mlh.el egg-cnv.el egg-com.el \
28 egg/sj3.el egg/sj3rpc.el \
29 egg/wnn.el egg/wnnrpc.el
31 ELCS = ${SRCS:.el=.elc}
33 DIST = ${ETCS} ${SRCS}
36 ${EMACS} ${BATCHFLAGS} ${DEPS} -f batch-byte-compile $<
41 rm -f ${ELCS} leim-list.el
44 @if (grep "^;;; Emacs/Egg Configuration" $(DOTEMACS) 2>&1) >/dev/null; then \
45 echo Emacs/Egg setup already exists in $(DOTEMACS); \
47 (echo >> $(DOTEMACS)); \
48 (echo ";;; Emacs/Egg Configuration" >> $(DOTEMACS)); \
49 (echo "(require 'egg)" >> $(DOTEMACS)); \
50 echo "Added Emacs/Egg setup to $(DOTEMACS)"; \
54 @if (grep ";;; Egg" ${LEIMDIR}/leim-list.el 2>&1) >/dev/null; then \
55 echo Egg setup already exists in ${LEIMDIR}/leim-list.el; \
56 cat ${LEIMDIR}/leim-list.el >leim-list.el; \
58 cat ${LEIMDIR}/leim-list.el leim-list-egg.el >leim-list.el; \
62 for d in its egg; do \
63 if [ ! -d ${SITEDIR}/$$d ]; then mkdir -p ${SITEDIR}/$$d; fi; \
66 install: all dotemacs leim-list.el install-dirs
67 for x in ${SRCS} ${ELCS}; do $(INSTALL) -m 644 $$x ${SITEDIR}/`dirname $$x`; done
68 $(INSTALL) -m 644 leim-list.el ${SITEDIR}
70 egg/sj3rpc.elc: egg-com.elc egg/sj3.elc
71 egg/wnnrpc.elc: egg-com.elc egg/wnn.elc
74 rm -f ${ELCS} leim-list.el *~
76 ### Source code maintainance
77 DATE=$(shell date "+%y%m%d")
82 tar -c -f - ${DIST} | tar Cxf ../egg-${DATE} -
84 sed "/^### Source code maintainance/,\$$d" <Makefile >Makefile.dist; \
85 mv -f Makefile.dist Makefile)
86 (cd ..; tar cvzf egg-${DATE}.tar.gz egg-${DATE})
89 rm -rf ../egg-snap-${DATE}
90 mkdir ../egg-snap-${DATE}
91 tar -c -f - . | tar Cxf ../egg-snap-${DATE} -
92 (cd ..; tar cvzf egg-snap-${DATE}.tar.gz egg-snap-${DATE})