X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile.in;h=861a76a768b8d9c2b5f0cc856d99f9ed0c49cb97;hb=25e0fa88d8c2a218a940b23d709a6b47a276bfa4;hp=d0070dea125f8e8cd767afe5a4606e2510c8866b;hpb=5c24e16ee6861e8a19daf4f42b2a8e55a0f36e31;p=chise%2Fchise-base.git diff --git a/Makefile.in b/Makefile.in index d0070de..861a76a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,6 +1,7 @@ VERSION = @PACKAGE_VERSION@ TAR = tar +SUDO = prefix = @prefix@ exec_prefix = @exec_prefix@ @@ -9,9 +10,12 @@ LIBDIR = @libdir@ OPTS = @ac_configure_args@ CONCORD_OPTS = $(OPTS) LIBCHISE_OPTS = $(OPTS) -XEMACS_OPTS = $(OPTS) --pdump @xemacs_opts@ --without-xim --with-database=berkdb +XEMACS_OPTS = @xemacs_configure_args@ --pdump @xemacs_opts@ --without-xim --with-database=berkdb +FONTS_OPTS = $(OPTS) -CVS_ROOT = @cvs_root@ +CVS_ROOT = "@cvs_root@" +LEMI_CVS_ROOT = "@lemi_cvs_root@" +XEMACS_PACKAGES_URL = http://ftp.xemacs.org/pub/xemacs/packages/ all: build-concord build-libchise @@ -32,7 +36,7 @@ build-concord: config-concord install-concord: build-concord $(LIBDIR)/libconcord.a $(LIBDIR)/libconcord.a: concord/libconcord.la - cd concord && make install + cd concord && $(SUDO) make install config-libchise: install-concord libchise libchise/config.h @@ -46,15 +50,15 @@ build-libchise: config-libchise install-libchise: build-libchise $(LIBDIR)/libchise.a $(LIBDIR)/libchise.a: libchise/libchise.la - cd libchise && make install + cd libchise && $(SUDO) make install install-core: install-concord install-libchise install-db install-db: - -cd $(prefix)/share; mkdir chise + -cd $(prefix)/share; $(SUDO) mkdir chise (cd chise-db; $(TAR) cvf - db* ) \ - | (cd $(prefix)/share/chise; $(TAR) xvf -) + | (cd $(prefix)/share/chise; $(SUDO) $(TAR) xvf -) config-xemacs: xemacs-chise xemacs-chise/src/config.h @@ -63,22 +67,41 @@ xemacs-chise/src/config.h: cd xemacs-chise && ./configure --with-chise $(XEMACS_OPTS) build-xemacs: config-xemacs - cd xemacs-chise && make + cd xemacs-chise && LC_ALL=C make install-xemacs: install-libchise $(BINDIR)/xemacs $(BINDIR)/xemacs: build-xemacs xemacs-chise/src/xemacs - cd xemacs-chise && make install + cd xemacs-chise && $(SUDO) make install -install-tomoyo-tools: install-xemacs tomoyo-tools - cd tomoyo-tools && make install +install-apel: install-xemacs apel $(LIBDIR)/xemacs/xemacs-packages + -$(SUDO) mkdir $(LIBDIR)/xemacs/site-packages + cd apel && LC_ALL=C $(SUDO) make install-package + +install-tomoyo-tools: install-apel tomoyo-tools $(LIBDIR)/xemacs/mule-packages + cd tomoyo-tools && $(SUDO) make install install-ids: install-tomoyo-tools ids - cd ids && make install + cd ids && $(SUDO) make install + +install-nabe: install-apel nabe + cd nabe && $(SUDO) make install-package + + +config-fonts: chise-fonts-installer chise-fonts-installer/config.h + +chise-fonts-installer/config.h: + cd chise-fonts-installer && ./configure $(FONTS_OPTS) +build-fonts: config-fonts + cd chise-fonts-installer && make -install-base: install-ids +install-fonts: build-fonts + cd chise-fonts-installer && $(SUDO) make install + + +install-base: install-ids install-nabe install-fonts generate-db: install-base @@ -99,50 +122,111 @@ tar-core: cvs-base-clean cvs -d $(CVS_ROOT) export -d chise-core-$(VERSION) \ -r chise-core-`echo $(VERSION) | tr . _` \ chise-base; \ - cd chise-base; \ - cvs -d $(CVS_ROOT) export -d chise-core-$(VERSION) \ + cd chise-core-$(VERSION); \ + cvs -d $(CVS_ROOT) export \ -r chise-core-`echo $(VERSION) | tr . _` \ concord; \ - cvs -d $(CVS_ROOT) export -d chise-core-$(VERSION) \ + cvs -d $(CVS_ROOT) export \ -r chise-core-`echo $(VERSION) | tr . _` \ libchise' - #cd /tmp; mkdir chise-core-$(VERSION) - #rsync -av Makefile libchise chise-db \ - # xemacs-chise ids - # /tmp/chise-core-$(VERSION) - #rsync -av Makefile concord libchise chise-db \ - # /tmp/chise-core-$(VERSION) rsync -av chise-db /tmp/chise-core-$(VERSION) cd /tmp; $(TAR) cvzf chise-core-$(VERSION).tar.gz \ chise-core-$(VERSION) +tar-base: + cvs commit + sh -c 'cvs tag -R chise-base-`echo $(VERSION) | tr . _`; \ + cd /tmp; \ + cvs -d $(CVS_ROOT) export -d chise-base-$(VERSION) \ + -r chise-base-`echo $(VERSION) | tr . _` \ + chise-base; \ + cd chise-base-$(VERSION); \ + cvs -d $(CVS_ROOT) export \ + -r chise-base-`echo $(VERSION) | tr . _` \ + concord; \ + cvs -d $(CVS_ROOT) export \ + -r chise-base-`echo $(VERSION) | tr . _` \ + libchise; \ + cvs -d $(CVS_ROOT) export \ + -r chise-base-`echo $(VERSION) | tr . _` \ + -d xemacs-chise xemacs; \ + cvs -d $(CVS_ROOT) export \ + -r chise-base-`echo $(VERSION) | tr . _` \ + tomoyo-tools; \ + cvs -d $(CVS_ROOT) export \ + -r chise-base-`echo $(VERSION) | tr . _` \ + ids; \ + cvs -d $(CVS_ROOT) export \ + -r chise-base-`echo $(VERSION) | tr . _` \ + chise-fonts-installer' + rsync -av chise-db /tmp/chise-base-$(VERSION) + cd /tmp; $(TAR) cvzf chise-base-$(VERSION).tar.gz \ + chise-base-$(VERSION) + get-base: concord libchise xemacs-chise tomoyo-tools ids -concord: .cvs-login +concord: + make .cvs-login cvs -z9 -d $(CVS_ROOT) co concord -libchise: .cvs-login +libchise: + make .cvs-login cvs -z9 -d $(CVS_ROOT) co libchise -xemacs-chise: .cvs-login +xemacs-chise: + make .cvs-login cvs -z9 -d $(CVS_ROOT) co -d xemacs-chise xemacs -tomoyo-tools: .cvs-login +tomoyo-tools: + make .cvs-login cvs -z9 -d $(CVS_ROOT) co tomoyo-tools -ids: .cvs-login +ids: + make .cvs-login cvs -z9 -d $(CVS_ROOT) co ids +chise-fonts-installer: + make .cvs-login + cvs -z9 -d $(CVS_ROOT) co chise-fonts-installer + .cvs-login: - cvs -d $(CVS_ROOT) login + if test "`echo $(CVS_ROOT)|grep '^:pserver:'`" != ""; then \ + cvs -d $(CVS_ROOT) login;\ + fi touch .cvs-login +apel: + make .lemi-cvs-login + cvs -z9 -d $(LEMI_CVS_ROOT) co apel + +nabe: + make .lemi-cvs-login + cvs -z9 -d $(LEMI_CVS_ROOT) co nabe + +.lemi-cvs-login: + if test "`echo $(LEMI_CVS_ROOT)|grep '^:pserver:'`" != ""; then \ + cvs -d $(LEMI_CVS_ROOT) login;\ + fi + touch .lemi-cvs-login + +$(LIBDIR)/xemacs/xemacs-packages: + cd $(LIBDIR)/xemacs && \ + curl $(XEMACS_PACKAGES_URL)/xemacs-sumo.tar.gz \ + | $(SUDO) $(TAR) xvzf - --exclude=apel + +$(LIBDIR)/xemacs/mule-packages: + cd $(LIBDIR)/xemacs && \ + curl $(XEMACS_PACKAGES_URL)/xemacs-mule-sumo.tar.gz \ + | $(SUDO) $(TAR) xvzf - + distclean: cd concord; make distclean cd libchise; make distclean cd xemacs-chise; make distclean cd ids; make clean + cd nabe; make clean + cd chise-fonts-installer; make distclean db-clean: @@ -154,4 +238,4 @@ cvs-core-clean: rm -rf concord libchise cvs-base-clean: - rm -rf xemacs-chise tomoyo-tools ids + rm -rf xemacs-chise apel tomoyo-tools ids nabe chise-fonts-installer