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 = @xemacs_configure_args@ --pdump @xemacs_opts@ --without-xim --with-database=berkdb
16 CVS_ROOT = "@cvs_root@"
17 LEMI_CVS_ROOT = "@lemi_cvs_root@"
18 XEMACS_PACKAGES_URL = http://ftp.xemacs.org/pub/xemacs/packages/
20 all: build-concord build-libchise
25 force-config-concord: concord
26 cd concord && ./configure $(CONCORD_OPTS)
28 config-concord: concord concord/config.h
31 cd concord && ./configure $(CONCORD_OPTS)
33 build-concord: config-concord
36 install-concord: build-concord $(LIBDIR)/libconcord.a
38 $(LIBDIR)/libconcord.a: concord/libconcord.la
39 cd concord && $(SUDO) make install
42 config-libchise: install-concord libchise libchise/config.h
45 cd libchise && ./configure $(LIBCHISE_OPTS)
47 build-libchise: config-libchise
50 install-libchise: build-libchise $(LIBDIR)/libchise.a
52 $(LIBDIR)/libchise.a: libchise/libchise.la
53 cd libchise && $(SUDO) make install
56 install-core: install-concord install-libchise install-db
59 -cd $(prefix)/share; $(SUDO) mkdir chise
60 (cd chise-db; $(TAR) cvf - db* ) \
61 | (cd $(prefix)/share/chise; $(SUDO) $(TAR) xvf -)
64 config-xemacs: xemacs-chise xemacs-chise/src/config.h
66 xemacs-chise/src/config.h:
67 cd xemacs-chise && ./configure --with-chise $(XEMACS_OPTS)
69 build-xemacs: config-xemacs
70 cd xemacs-chise && LC_ALL=C make
72 install-xemacs: install-libchise $(BINDIR)/xemacs
74 $(BINDIR)/xemacs: build-xemacs xemacs-chise/src/xemacs
75 cd xemacs-chise && $(SUDO) make install
78 install-apel: install-xemacs apel $(LIBDIR)/xemacs/xemacs-packages
79 -$(SUDO) mkdir $(LIBDIR)/xemacs/site-packages
80 cd apel && LC_ALL=C $(SUDO) make install-package
82 install-tomoyo-tools: install-apel tomoyo-tools $(LIBDIR)/xemacs/mule-packages
83 cd tomoyo-tools && $(SUDO) make install
85 install-ids: install-tomoyo-tools ids
86 cd ids && $(SUDO) make install
88 install-nabe: install-apel nabe
89 cd nabe && $(SUDO) make install-package
92 config-fonts: chise-fonts-installer chise-fonts-installer/config.h
94 chise-fonts-installer/config.h:
95 cd chise-fonts-installer && ./configure $(FONTS_OPTS)
97 build-fonts: config-fonts
98 cd chise-fonts-installer && make
100 install-fonts: build-fonts
101 cd chise-fonts-installer && $(SUDO) make install
104 install-base: install-ids install-nabe install-fonts
107 generate-db: install-base
111 -cd chise-db && mkdir db-$(VERSION)
112 (cd `xemacs -batch -vanilla -eval \
113 '(princ (file-name-as-directory data-directory))'`chise-db; \
115 | (cd chise-db/db-$(VERSION); $(TAR) xvf - )
116 -cd chise-db && ln -s db-$(VERSION) db
118 tar-core: cvs-base-clean
120 sh -c 'cvs tag -R chise-core-`echo $(VERSION) | tr . _`; \
122 cvs -d $(CVS_ROOT) export -d chise-core-$(VERSION) \
123 -r chise-core-`echo $(VERSION) | tr . _` \
125 cd chise-core-$(VERSION); \
126 cvs -d $(CVS_ROOT) export \
127 -r chise-core-`echo $(VERSION) | tr . _` \
129 cvs -d $(CVS_ROOT) export \
130 -r chise-core-`echo $(VERSION) | tr . _` \
132 rsync -av chise-db /tmp/chise-core-$(VERSION)
133 cd /tmp; $(TAR) cvzf chise-core-$(VERSION).tar.gz \
134 chise-core-$(VERSION)
138 sh -c 'cvs tag -R chise-base-`echo $(VERSION) | tr . _`; \
140 cvs -d $(CVS_ROOT) export -d chise-base-$(VERSION) \
141 -r chise-base-`echo $(VERSION) | tr . _` \
143 cd chise-base-$(VERSION); \
144 cvs -d $(CVS_ROOT) export \
145 -r chise-base-`echo $(VERSION) | tr . _` \
147 cvs -d $(CVS_ROOT) export \
148 -r chise-base-`echo $(VERSION) | tr . _` \
150 cvs -d $(CVS_ROOT) export \
151 -r chise-base-`echo $(VERSION) | tr . _` \
152 -d xemacs-chise xemacs; \
153 cvs -d $(CVS_ROOT) export \
154 -r chise-base-`echo $(VERSION) | tr . _` \
156 cvs -d $(CVS_ROOT) export \
157 -r chise-base-`echo $(VERSION) | tr . _` \
159 cvs -d $(CVS_ROOT) export \
160 -r chise-base-`echo $(VERSION) | tr . _` \
161 chise-fonts-installer'
162 rsync -av chise-db /tmp/chise-base-$(VERSION)
163 cd /tmp; $(TAR) cvzf chise-base-$(VERSION).tar.gz \
164 chise-base-$(VERSION)
166 get-base: concord libchise xemacs-chise tomoyo-tools ids
170 cvs -z9 -d $(CVS_ROOT) co concord
174 cvs -z9 -d $(CVS_ROOT) co libchise
178 cvs -z9 -d $(CVS_ROOT) co -d xemacs-chise xemacs
182 cvs -z9 -d $(CVS_ROOT) co tomoyo-tools
186 cvs -z9 -d $(CVS_ROOT) co ids
188 chise-fonts-installer:
190 cvs -z9 -d $(CVS_ROOT) co chise-fonts-installer
193 if test "`echo $(CVS_ROOT)|grep '^:pserver:'`" != ""; then \
194 cvs -d $(CVS_ROOT) login;\
200 cvs -z9 -d $(LEMI_CVS_ROOT) co apel
204 cvs -z9 -d $(LEMI_CVS_ROOT) co nabe
207 if test "`echo $(LEMI_CVS_ROOT)|grep '^:pserver:'`" != ""; then \
208 cvs -d $(LEMI_CVS_ROOT) login;\
210 touch .lemi-cvs-login
212 $(LIBDIR)/xemacs/xemacs-packages:
213 cd $(LIBDIR)/xemacs && \
214 curl $(XEMACS_PACKAGES_URL)/xemacs-sumo.tar.gz \
215 | $(SUDO) $(TAR) xvzf - --exclude=apel
217 $(LIBDIR)/xemacs/mule-packages:
218 cd $(LIBDIR)/xemacs && \
219 curl $(XEMACS_PACKAGES_URL)/xemacs-mule-sumo.tar.gz \
220 | $(SUDO) $(TAR) xvzf -
224 cd concord; make distclean
225 cd libchise; make distclean
226 cd xemacs-chise; make distclean
229 cd chise-fonts-installer; make distclean
235 cvs-clean: cvs-base-clean cvs-core-clean db-clean
238 rm -rf concord libchise
241 rm -rf xemacs-chise apel tomoyo-tools ids nabe chise-fonts-installer