| 1 |
VERSION = 0.3.0 |
| 2 |
|
| 3 |
TAR = tar |
| 4 |
|
| 5 |
PREFIX = /usr/local |
| 6 |
LIBCHISE_OPTS = |
| 7 |
XEMACS_OPTS = --site-includes=/sw/include:/sw/include/db4 \ |
| 8 |
--site-libraries=/sw/lib |
| 9 |
|
| 10 |
|
| 11 |
all: config-libchise build-libchise |
| 12 |
|
| 13 |
config-libchise: libchise |
| 14 |
cd libchise && ./configure $(LIBCHISE_OPTS) |
| 15 |
|
| 16 |
build-libchise: |
| 17 |
cd libchise && make |
| 18 |
|
| 19 |
install: install-libchise install-db |
| 20 |
|
| 21 |
install-libchise: |
| 22 |
cd libchise && make install |
| 23 |
|
| 24 |
install-db: |
| 25 |
(cd chise-db; tar cvf - lib share/chise) \ |
| 26 |
| (cd $(PREFIX); tar xvf -) |
| 27 |
|
| 28 |
|
| 29 |
config-xemacs: xemacs-chise |
| 30 |
cd xemacs-chise && ./configure --with-chise --without-xim --pdump \ |
| 31 |
$(XEMACS_OPTS) --with-database=berkdb |
| 32 |
|
| 33 |
build-xemacs: config-xemacs |
| 34 |
cd xemacs-chise && make |
| 35 |
|
| 36 |
install-xemacs: |
| 37 |
cd xemacs-chise && make install |
| 38 |
|
| 39 |
install-ids: ids |
| 40 |
cd ids && make install |
| 41 |
|
| 42 |
|
| 43 |
generate-db: install-xemacs install-ids |
| 44 |
|
| 45 |
chise-db: |
| 46 |
-mkdir chise-db |
| 47 |
(cd $(PREFIX); tar cvf - share/chise \ |
| 48 |
lib/xemacs-21.4.15/etc/chise-db ) \ |
| 49 |
| (cd chise-db; tar xvf - ) |
| 50 |
|
| 51 |
tar: |
| 52 |
cd /tmp; mkdir chise-base-$(VERSION) |
| 53 |
#rsync -av Makefile libchise chise-db \ |
| 54 |
# xemacs-chise ids |
| 55 |
# /tmp/chise-base-$(VERSION) |
| 56 |
rsync -av Makefile libchise chise-db /tmp/chise-base-$(VERSION) |
| 57 |
cd /tmp; tar cvzf chise-base-$(VERSION).tar.gz \ |
| 58 |
chise-base-$(VERSION) |
| 59 |
|
| 60 |
libchise: |
| 61 |
cvs -d :pserver:[email protected]:/cvs/chise login |
| 62 |
cvs -d :pserver:[email protected]:/cvs/chise co libchise |
| 63 |
|
| 64 |
xemacs-chise: |
| 65 |
cvs -d :pserver:[email protected]:/cvs/chise login |
| 66 |
cvs -d :pserver:[email protected]:/cvs/chise co \ |
| 67 |
-d xemacs-chise xemacs |
| 68 |
|
| 69 |
ids: |
| 70 |
cvs -d :pserver:[email protected]:/cvs/chise login |
| 71 |
cvs -d :pserver:[email protected]:/cvs/chise co ids |
| 72 |
|
| 73 |
|
| 74 |
distclean: |
| 75 |
cd libchise; make distclean |
| 76 |
cd xemacs-chise; make distclean |
| 77 |
cd ids; make clean |