# Makefile for compiling SKK 9.4.27 and Emacs 18 -*- makefile -*-
# Mikio Nakajima (gy2m-nkjm@asahi-net.or.jp) created on May 27, 1996.
#
SHELL = /bin/sh

INSTALL= install -c -s
INSTALLDATA = install -c -m 644

CC = gcc -traditional
CFLAGS = -O
# library which skkdic-expr uses.
DBMLIB=
#DBMLIB= -ldbm

EMACS = emacs
#EMACSVERSION = 18.53

TEXI2DVI = texi2dvi

ELISPDIR = /usr/local/lib/emacs/lisp
DATADIR = /usr/local/lib/emacs/etc
INFODIR = /usr/local/info
BINDIR = /usr/local/bin
## skkserv will be installed into the following directory
#SERVERDIR = /usr/local/libexec/emacs

## SKK JISYO which skkserv uses
#JISYO = SKK-JISYO.L

## for SKK Server
############################################################################
## Compatibility Note
##
## If your operating system is one of the following, you don't have to
## modify COMPAT:
##	4.[23] BSD UNIX, its derivatives (SunOS, News-OS, Ultrix, etc.)
##	System V Release 4.0
##	System V SX/A with BSD option
#COMPAT = 
##
## You should define HP_UX if you use HP-UX
##COMPAT = -DHP_UX
##
############################################################################
## if you cannot become a superuser and install skkserv privately, 
## define PRIVATE
#PRIVATE = 
##PRIVATE = -DPRIVATE
############################################################################
##  if you install non-privately, you should set NIS
##  NIS types 	0: "skkserv" is already defined
##		1: not use NIS
##		2: this host is NIS master
##		3: this host is not NIS master
############################################################################
#NIS =

export INSTALL INSTALLDATA CC CFLAGS DBMLIB EMACS EMACSVERSION TEXI2DVI \
	ELISPDIR DATADIR INFODIR BINDIR #SERVERDIR JISYO COMPAT PRIVATE NIS


all:
	cd lisp; -test ! -f Makefile.19 && mv Makefile Makefile.19; \
	-cp Makefile.18 Makefile; $(MAKE) all
	cd jisyo-tools; $(MAKE) all
	cd doc; $(MAKE) all
	#cd skkserv; $(MAKE) all

install:
	cd lisp; $(MAKE) install
	cd jisyo-tools; $(MAKE) install
	cd doc; $(MAKE) install
	cd etc; $(MAKE) install
	#cd skkserv; $(MAKE) install

TAGS: $(SRCS)
	cd lisp; $(MAKE) TAGS
	cd skkserv; $(MAKE) TAGS
	cd jisyo-tools; $(MAKE) TAGS

.PHONY: clean
clean:
	cd lisp; $(MAKE) clean
	cd skkserv; $(MAKE) clean
	cd jisyo-tools; $(MAKE) clean


syntax highlighted by Code2HTML, v. 0.9.1