# Generated automatically from Makefile.in by configure.
# Makefile for compiling SKK 9.4.27 and Emacs 19
# Mikio Nakajima (gy2m-nkjm@asahi-net.or.jp) created on May 27, 1996.
#
SHELL = /bin/sh


srcdir = .
top_srcdir = ..

INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644

prefix = /usr/local
datadir = ${prefix}/share

EMACS = emacs
ELISPDIR = $(datadir)/emacs/site-lisp

SOURCES = stack-m.el queue-m.el elib-node.el avltree.el string.el \
          skk-e19.el skk-auto.el skk-comp.el \
          skk-gadget.el skk-kakasi.el skk-kcode.el skk-num.el \
          skk-server.el skk-tree.el skk-tut.el skk-vip.el skk-isearch.el \
          skk.el #skk-tools.el

COMPILED = stack-m.elc queue-m.elc elib-node.elc avltree.elc string.elc \
           skk-e19.elc skk-auto.elc skk-comp.elc \
           skk-gadget.elc skk-kakasi.elc skk-kcode.elc skk-num.elc \
           skk-server.elc skk-tree.elc skk-tut.elc skk-vip.elc skk-isearch.elc \
           skk.elc #skk-tools.elc

all: lp.el $(COMPILED)

.SUFFIXES: .el .elc

.el.elc:
	$(EMACS) -batch -q -no-site-file -l ./lp.el -f batch-byte-compile $<

lp.el:
	echo '(setq load-path (cons "." load-path))'	> lp.el
	echo '(eval-when-compile' >> lp.el
	echo "(setq byte-compile-warnings '(callargs)))" >> lp.el

install: $(COMPILED)
	$(top_srcdir)/mkinstalldirs $(ELISPDIR)
	@list="$(SOURCES) $(COMPILED)"; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(INSTALL_DATA) $$p $(ELISPDIR)/"; \
             $(INSTALL_DATA) $$p $(ELISPDIR)/; \
          else :; fi; \
        done

TAGS: $(SOURCES)
	etags $(SOURCES)

.PHONY: clean
clean:
	-rm -f *~ $(COMPILED) lp.el

stack-m.elc: stack-m.el
queue-m.elc: queue-m.el
elib-node.elc: elib-node.el
avltree.elc: avltree.el elib-node.el stack-m.el
string.elc: string.el queue-m.el
skk-e19.elc: skk-e19.el
skk.elc: skk-e19.el avltree.el string.el queue-m.el
skk-comp.elc: skk-comp.el skk-e19.el skk.el stack-m.el
skk-auto.elc: skk-auto.el skk-e19.el skk.el
skk-gadget.elc: skk-gadget.el skk-e19.el skk.el
skk-kakasi.elc: skk-kakasi.el skk-e19.el skk.el
skk-kcode.elc: skk-kcode.el skk-e19.el skk.el
skk-num.elc: skk-num.el skk-e19.el skk.el
skk-server.elc: skk-server.el skk-e19.el skk.el
skk-tree.elc: skk-tree.el skk-e19.el skk.el
skk-tut.elc: skk-tut.el skk-e19.el skk.el
skk-vip.elc: skk-vip.el skk-e19.el skk.el
skk-isearch.elc: skk-isearch.el skk-e19.el skk.el
