# Makefile --- Makefile of EGG V4.0 # Copyright (C) 1997, 1998 Mule Project, # Powered by ElectrotechnicalLaboratory, JAPAN. # Project Leader: Satoru Tomura DOTEMACS=/home/niibe/.emacs LEIMDIR=/usr/local/share/emacs/20.2.892/leim SITEDIR=/usr/local/share/emacs/site-lisp INSTALL=/usr/bin/install ###### DEPS = -l ./docomp.el BATCHFLAGS = -batch -q -no-site-file EMACS = emacs .SUFFIXES: .el .elc ETCS = Makefile leim-list-egg.el AUTHORS ChangeLog README TODO docomp.el \ Egg.prj PROBLEMS SRCS = menudiag.el its.el egg.el \ its/ascii.el \ its/erpin.el \ its/hankata.el \ its/hira.el \ its/jeonkak.el \ its/pinyin.el \ its/hangul.el \ its/kata.el \ its/quanjiao.el \ its/zenkaku.el \ its/zhuyin.el \ its-keydef.el \ egg-mlh.el egg-cnv.el egg-com.el \ egg/canna.el egg/cannarpc.el \ egg/sj3.el egg/sj3rpc.el \ egg/wnn.el egg/wnnrpc.el ELCS = ${SRCS:.el=.elc} DIST = ${ETCS} ${SRCS} .el.elc: ${EMACS} ${BATCHFLAGS} ${DEPS} -f batch-byte-compile $< all: ${ELCS} clean: rm -f ${ELCS} leim-list.el dotemacs: @if (grep "^;;; Emacs/Egg Configuration" $(DOTEMACS) 2>&1) >/dev/null; then \ echo Emacs/Egg setup already exists in $(DOTEMACS); \ else \ (echo >> $(DOTEMACS)); \ (echo ";;; Emacs/Egg Configuration" >> $(DOTEMACS)); \ (echo "(require 'egg)" >> $(DOTEMACS)); \ echo "Added Emacs/Egg setup to $(DOTEMACS)"; \ fi leim-list.el: @if (grep ";;; Egg" ${LEIMDIR}/leim-list.el 2>&1) >/dev/null; then \ echo Egg setup already exists in ${LEIMDIR}/leim-list.el; \ cat ${LEIMDIR}/leim-list.el >leim-list.el; \ else \ cat ${LEIMDIR}/leim-list.el leim-list-egg.el >leim-list.el; \ fi install-dirs: for d in its egg; do \ if [ ! -d ${SITEDIR}/$$d ]; then mkdir -p ${SITEDIR}/$$d; fi; \ done install: all dotemacs leim-list.el install-dirs for x in ${SRCS} ${ELCS}; do $(INSTALL) -m 644 $$x ${SITEDIR}/`dirname $$x`; done $(INSTALL) -m 644 leim-list.el ${SITEDIR} # DEPENDENCIES egg/sj3rpc.elc: egg-com.elc egg/sj3.elc egg/wnnrpc.elc: egg-com.elc egg/wnn.elc egg.elc its/ascii.elc its/erpin.elc its/hankata.elc \ its/hira.elc its/jeonkak.elc its/pinyin.elc \ its/hangul.elc its/kata.elc its/quanjiao.elc \ its/zenkaku.elc its/zhuyin.elc: its-keydef.elc distclean: rm -f ${ELCS} leim-list.el *~ ### Source code maintainance DATE=$(shell date "+%y%m%d") dist: distclean rm -rf ../egg-${DATE} mkdir ../egg-${DATE} tar -c -f - ${DIST} | tar Cxf ../egg-${DATE} - (cd ../egg-${DATE}; \ sed "/^### Source code maintainance/,\$$d" Makefile.dist; \ mv -f Makefile.dist Makefile) (cd ..; tar cvzf egg-${DATE}.tar.gz egg-${DATE}) working-ss: distclean rm -rf ../egg-snap-${DATE} mkdir ../egg-snap-${DATE} tar -c -f - . | tar Cxf ../egg-snap-${DATE} - (cd ..; tar cvzf egg-snap-${DATE}.tar.gz egg-snap-${DATE})