1 # Makefile --- Makefile of EGG V4.0
3 # Copyright (C) 1997 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.1/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
22 SRCS = menudiag.el its.el egg.el \
24 egg-mlh.el egg-cnv.el egg-com.el \
26 egg/sj3.el egg/sj3rpc.el \
27 egg/wnn.el egg/wnnrpc.el
29 ELCS = ${SRCS:.el=.elc}
31 DIST = ${ETCS} ${SRCS}
34 ${EMACS} ${BATCHFLAGS} ${DEPS} -f batch-byte-compile $<
39 rm -f ${ELCS} leim-list.el
42 @if (grep "^;;; Emacs/Egg Configuration" $(DOTEMACS) 2>&1) >/dev/null; then \
43 echo Emacs/Egg setup already exists in $(DOTEMACS); \
45 (echo >> $(DOTEMACS)); \
46 (echo ";;; Emacs/Egg Configuration" >> $(DOTEMACS)); \
47 (echo "(require 'egg)" >> $(DOTEMACS)); \
48 echo "Added Emacs/Egg setup to $(DOTEMACS)"; \
52 @if (grep ";;; Egg" ${LEIMDIR}/leim-list.el 2>&1) >/dev/null; then \
53 echo Egg setup already exists in ${LEIMDIR}/leim-list.el; \
54 cat ${LEIMDIR}/leim-list.el >leim-list.el; \
56 cat ${LEIMDIR}/leim-list.el leim-list-egg.el >leim-list.el; \
60 for d in its egg; do \
61 if [ ! -d ${SITEDIR}/$$d ]; then mkdir -p ${SITEDIR}/$$d; fi; \
64 install: all dotemacs leim-list.el install-dirs
65 for x in ${SRCS} ${ELCS}; do $(INSTALL) -m 644 $$x ${SITEDIR}/`dirname $$x`; done
66 $(INSTALL) -m 644 leim-list.el ${SITEDIR}
68 egg/sj3rpc.elc: egg-com.elc egg/sj3.elc
69 egg/wnnrpc.elc: egg-com.elc egg/wnn.elc
72 rm -f ${ELCS} leim-list.el *~
74 ### Source code maintainance
75 DATE=$(shell date "+%y%m%d")
80 tar -c -f - ${DIST} | tar Cxf ../egg-${DATE} -
82 sed "/^### Source code maintainance/,\$$d" <Makefile >Makefile.dist; \
83 mv -f Makefile.dist Makefile)
84 (cd ..; tar cvzf egg-${DATE}.tar.gz egg-${DATE})
87 rm -rf ../egg-snap-${DATE}
88 mkdir ../egg-snap-${DATE}
89 tar -c -f - . | tar Cxf ../egg-snap-${DATE} -
90 (cd ..; tar cvzf egg-snap-${DATE}.tar.gz egg-snap-${DATE})