From: tomo Date: Thu, 6 Mar 2003 07:34:19 +0000 (+0000) Subject: Install chise.h; setup /usr/local/lib/chise/char-db/. X-Git-Tag: r0_1_1-pre1~41 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=ed06c600668ff8f65a162bb4af348f1f07c8c48d;p=chise%2Flibchise.git Install chise.h; setup /usr/local/lib/chise/char-db/. --- diff --git a/Makefile b/Makefile index e545521..9fabe50 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,9 @@ CC = gcc CFLAGS = -g -O2 -c LINKER = $(CC) -shared -o +INCLUDE_INSTALLDIR = /usr/local/include LIB_INSTALLDIR = /usr/local/lib +DB_INSTALLDIR = /usr/local/lib/chise VERSION = 0.1 @@ -18,12 +20,19 @@ chise.o: chise.c chise.h $(CC) $(CFLAGS) chise.c -install: install.so +install: install.h install.so install.db + +install.h: + install -c chise.h $(INCLUDE_INSTALLDIR) install.so: libchise.so install -c libchise.so $(LIB_INSTALLDIR)/libchise.so.$(VERSION) (cd $(LIB_INSTALLDIR); ln -sf libchise.so.$(VERSION) libchise.so) +install.db: + -mkdir -p $(DB_INSTALLDIR) + ln -sf `xemacs -q -batch -eval '(princ (file-name-as-directory exec-directory))'`char-db $(DB_INSTALLDIR) + clean: -$(RM) *.o *.so sample