1 VERSION = @PACKAGE_VERSION@
7 exec_prefix = @exec_prefix@
10 OPTS = @ac_configure_args@
11 CONCORD_OPTS = $(OPTS)
12 LIBCHISE_OPTS = $(OPTS)
13 XEMACS_OPTS = $(OPTS) --pdump @xemacs_opts@ --without-xim --with-database=berkdb
16 LEMI_CVS_ROOT = @lemi_cvs_root@
17 XEMACS_PACKAGES_URL = http://ftp.xemacs.org/pub/xemacs/packages/
19 all: build-concord build-libchise
24 force-config-concord: concord
25 cd concord && ./configure $(CONCORD_OPTS)
27 config-concord: concord concord/config.h
30 cd concord && ./configure $(CONCORD_OPTS)
32 build-concord: config-concord
35 install-concord: build-concord $(LIBDIR)/libconcord.a
37 $(LIBDIR)/libconcord.a: concord/libconcord.la
38 cd concord && $(SUDO) make install
41 config-libchise: install-concord libchise libchise/config.h
44 cd libchise && ./configure $(LIBCHISE_OPTS)
46 build-libchise: config-libchise
49 install-libchise: build-libchise $(LIBDIR)/libchise.a
51 $(LIBDIR)/libchise.a: libchise/libchise.la
52 cd libchise && $(SUDO) make install
55 install-core: install-concord install-libchise install-db
58 -cd $(prefix)/share; $(SUDO) mkdir chise
59 (cd chise-db; $(TAR) cvf - db* ) \
60 | (cd $(prefix)/share/chise; $(SUDO) $(TAR) xvf -)
63 config-xemacs: xemacs-chise xemacs-chise/src/config.h
65 xemacs-chise/src/config.h:
66 cd xemacs-chise && ./configure --with-chise $(XEMACS_OPTS)
68 build-xemacs: config-xemacs
69 cd xemacs-chise && LANG=C make
71 install-xemacs: install-libchise $(BINDIR)/xemacs
73 $(BINDIR)/xemacs: build-xemacs xemacs-chise/src/xemacs
74 cd xemacs-chise && $(SUDO) make install
77 install-apel: install-xemacs apel $(LIBDIR)/xemacs/xemacs-packages
78 -$(SUDO) mkdir $(LIBDIR)/xemacs/site-packages
79 cd apel && LANG=C $(SUDO) make install-package
81 install-tomoyo-tools: install-apel tomoyo-tools $(LIBDIR)/xemacs/mule-packages
82 cd tomoyo-tools && $(SUDO) make install
84 install-ids: install-tomoyo-tools ids
85 cd ids && $(SUDO) make install
88 install-base: install-ids
91 generate-db: install-base
95 -cd chise-db && mkdir db-$(VERSION)
96 (cd `xemacs -batch -vanilla -eval \
97 '(princ (file-name-as-directory data-directory))'`chise-db; \
99 | (cd chise-db/db-$(VERSION); $(TAR) xvf - )
100 -cd chise-db && ln -s db-$(VERSION) db
102 tar-core: cvs-base-clean
104 sh -c 'cvs tag -R chise-core-`echo $(VERSION) | tr . _`; \
106 cvs -d $(CVS_ROOT) export -d chise-core-$(VERSION) \
107 -r chise-core-`echo $(VERSION) | tr . _` \
109 cd chise-core-$(VERSION); \
110 cvs -d $(CVS_ROOT) export \
111 -r chise-core-`echo $(VERSION) | tr . _` \
113 cvs -d $(CVS_ROOT) export \
114 -r chise-core-`echo $(VERSION) | tr . _` \
116 rsync -av chise-db /tmp/chise-core-$(VERSION)
117 cd /tmp; $(TAR) cvzf chise-core-$(VERSION).tar.gz \
118 chise-core-$(VERSION)
122 sh -c 'cvs tag -R chise-base-`echo $(VERSION) | tr . _`; \
124 cvs -d $(CVS_ROOT) export -d chise-base-$(VERSION) \
125 -r chise-base-`echo $(VERSION) | tr . _` \
127 cd chise-base-$(VERSION); \
128 cvs -d $(CVS_ROOT) export \
129 -r chise-base-`echo $(VERSION) | tr . _` \
131 cvs -d $(CVS_ROOT) export \
132 -r chise-base-`echo $(VERSION) | tr . _` \
134 cvs -d $(CVS_ROOT) export \
135 -r chise-base-`echo $(VERSION) | tr . _` \
136 -d xemacs-chise xemacs; \
137 cvs -d $(CVS_ROOT) export \
138 -r chise-base-`echo $(VERSION) | tr . _` \
140 cvs -d $(CVS_ROOT) export \
141 -r chise-base-`echo $(VERSION) | tr . _` \
143 rsync -av chise-db /tmp/chise-base-$(VERSION)
144 cd /tmp; $(TAR) cvzf chise-base-$(VERSION).tar.gz \
145 chise-base-$(VERSION)
147 get-base: concord libchise xemacs-chise tomoyo-tools ids
151 cvs -z9 -d $(CVS_ROOT) co concord
155 cvs -z9 -d $(CVS_ROOT) co libchise
159 cvs -z9 -d $(CVS_ROOT) co -d xemacs-chise xemacs
163 cvs -z9 -d $(CVS_ROOT) co tomoyo-tools
167 cvs -z9 -d $(CVS_ROOT) co ids
170 if test "`echo $(CVS_ROOT)|grep '^:pserver:'`" != ""; then \
171 cvs -d $(CVS_ROOT) login;\
177 cvs -z9 -d $(LEMI_CVS_ROOT) co apel
180 if test "`echo $(LEMI_CVS_ROOT)|grep '^:pserver:'`" != ""; then \
181 cvs -d $(LEMI_CVS_ROOT) login;\
183 touch .lemi-cvs-login
185 $(LIBDIR)/xemacs/xemacs-packages:
186 cd $(LIBDIR)/xemacs && \
187 curl $(XEMACS_PACKAGES_URL)/xemacs-sumo.tar.gz \
188 | $(SUDO) $(TAR) xvzf -
190 $(LIBDIR)/xemacs/mule-packages:
191 cd $(LIBDIR)/xemacs && \
192 curl $(XEMACS_PACKAGES_URL)/xemacs-mule-sumo.tar.gz \
193 | $(SUDO) $(TAR) xvzf -
197 cd concord; make distclean
198 cd libchise; make distclean
199 cd xemacs-chise; make distclean
206 cvs-clean: cvs-base-clean cvs-core-clean db-clean
209 rm -rf concord libchise
212 rm -rf xemacs-chise tomoyo-tools ids