update.
[chise/chise-base.git] / Makefile
1 VERSION = 0.22
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-core:
52         cvs commit
53         sh -c 'cvs tag -R chise-core-`echo $(VERSION) \
54                                 | sed s/\\\\./_/ | sed s/\\\\./_/`; \
55         cd /tmp; mkdir chise-core-$(VERSION)
56         #rsync -av Makefile libchise chise-db \
57         #        xemacs-chise ids 
58         #       /tmp/chise-core-$(VERSION)
59         rsync -av Makefile libchise chise-db /tmp/chise-core-$(VERSION)
60         cd /tmp; tar cvzf chise-core-$(VERSION).tar.gz \
61                 chise-core-$(VERSION)
62
63 libchise:
64         cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise login
65         cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise co libchise
66
67 xemacs-chise:
68         cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise login
69         cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise co \
70                 -d xemacs-chise xemacs
71
72 ids:
73         cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise login
74         cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise co ids
75
76
77 distclean:
78         cd libchise; make distclean
79         cd xemacs-chise; make distclean
80         cd ids; make clean