-VERSION = 0.22
+VERSION = 0.23
TAR = tar
PREFIX = /usr/local
+CONCORD_OPTS =
LIBCHISE_OPTS =
XEMACS_OPTS = --site-includes=/sw/include:/sw/include/db4 \
--site-libraries=/sw/lib
-all: config-libchise build-libchise
+all: build-concord build-libchise
-config-libchise: libchise
+install: install-core
+
+
+force-config-concord: concord
+ cd concord && ./configure $(CONCORD_OPTS)
+
+config-concord: concord concord/config.h
+
+concord/config.h:
+ cd concord && ./configure $(CONCORD_OPTS)
+
+build-concord: config-concord
+ cd concord && make
+
+install-concord: build-concord $(PREFIX)/lib/libconcord.a
+
+$(PREFIX)/lib/libconcord.a: concord/libconcord.la
+ cd concord && make install
+
+
+config-libchise: install-concord libchise libchise/config.h
+
+libchise/config.h:
cd libchise && ./configure $(LIBCHISE_OPTS)
-build-libchise:
+build-libchise: config-libchise
cd libchise && make
-install: install-libchise install-db
+install-libchise: build-libchise $(PREFIX)/lib/libchise.a
-install-libchise:
+$(PREFIX)/lib/libchise.a: libchise/libchise.la
cd libchise && make install
+
+install-core: install-concord install-libchise install-db
+
install-db:
- (cd chise-db; tar cvf - lib share/chise) \
- | (cd $(PREFIX); tar xvf -)
+ -cd $(PREFIX)/share; mkdir chise
+ (cd chise-db; tar cvf - db* ) \
+ | (cd $(PREFIX)/share/chise; tar xvf -)
+
+config-xemacs: xemacs-chise xemacs-chise/src/config.h
-config-xemacs: xemacs-chise
+xemacs-chise/src/config.h:
cd xemacs-chise && ./configure --with-chise --without-xim --pdump \
$(XEMACS_OPTS) --with-database=berkdb
-build-xemacs: config-xemacs
+build-xemacs: config-xemacs
cd xemacs-chise && make
-install-xemacs:
+install-xemacs: install-libchise $(PREFIX)/bin/xemacs
+
+$(PREFIX)/bin/xemacs: build-xemacs xemacs-chise/src/xemacs
cd xemacs-chise && make install
-install-ids: ids
+
+install-ids: install-xemacs ids
cd ids && make install
+
+
+install-base: install-ids
-generate-db: install-xemacs install-ids
+generate-db: install-base
chise-db:
-mkdir chise-db
- (cd $(PREFIX); tar cvf - share/chise \
- lib/xemacs-21.4.15/etc/chise-db ) \
- | (cd chise-db; tar xvf - )
+ -cd chise-db && mkdir db-$(VERSION)
+ (cd $(PREFIX)/lib/xemacs-21.4.15/etc/chise-db; \
+ tar cvf - * ) \
+ | (cd chise-db/db-$(VERSION); tar xvf - )
+ -cd chise-db && ln -s db-$(VERSION) db
tar-core:
cvs commit
#rsync -av Makefile libchise chise-db \
# xemacs-chise ids
# /tmp/chise-core-$(VERSION)
- rsync -av Makefile libchise chise-db /tmp/chise-core-$(VERSION)
+ rsync -av Makefile concord libchise chise-db \
+ /tmp/chise-core-$(VERSION)
cd /tmp; tar cvzf chise-core-$(VERSION).tar.gz \
chise-core-$(VERSION)
-libchise:
- cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise login
+get-base: concord libchise xemacs-chise ids
+
+concord: .cvs-login
+ cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise co concord
+
+libchise: .cvs-login
cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise co libchise
-xemacs-chise:
- cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise login
+xemacs-chise: .cvs-login
cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise co \
-d xemacs-chise xemacs
-ids:
- cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise login
+ids: .cvs-login
cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise co ids
+.cvs-login:
+ cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise login
+ touch .cvs-login
+
distclean:
+ cd concord; make distclean
cd libchise; make distclean
cd xemacs-chise; make distclean
cd ids; make clean
+
+db-clean:
+ rm -rf chise-db
+
+cvs-clean: db-clean
+ rm -rf concord libchise xemacs-chise ids