From: tomo Date: Sat, 12 Jan 2008 14:12:37 +0000 (+0000) Subject: (SUDO): New variable. X-Git-Tag: chise-base-0_24~13 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=1a6a620c3aa8cf32fd94168f06dd5c4529050755;p=chise%2Fchise-base.git (SUDO): New variable. (LEMI_CVS_ROOT): New variable. (XEMACS_PACKAGES_URL): New variable. ($(LIBDIR)/libconcord.a): Use $(SUDO) to make install. ($(LIBDIR)/libchise.a): Likewise. (install-db): Use $(SUDO) to install chise-db in $(prefix)/share/chise. (build-xemacs): Build in C locale. ($(BINDIR)/xemacs): Use $(SUDO) to make install. (install-apel): New target. (install-tomoyo-tools): Call `install-apel' and `$(LIBDIR)/xemacs/mule-packages'; Use $(SUDO) to make install. (install-ids): Use $(SUDO) to make install. (apel): New target. (.lemi-cvs-login): New target. ($(LIBDIR)/xemacs/xemacs-packages): New target. ($(LIBDIR)/xemacs/mule-packages): New target. --- diff --git a/Makefile.in b/Makefile.in index 4dacc31..8f55d2f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,6 +1,7 @@ VERSION = @PACKAGE_VERSION@ TAR = tar +SUDO = prefix = @prefix@ exec_prefix = @exec_prefix@ @@ -12,6 +13,8 @@ LIBCHISE_OPTS = $(OPTS) XEMACS_OPTS = $(OPTS) --pdump @xemacs_opts@ --without-xim --with-database=berkdb 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 +35,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 +49,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,19 +66,23 @@ xemacs-chise/src/config.h: cd xemacs-chise && ./configure --with-chise $(XEMACS_OPTS) build-xemacs: config-xemacs - cd xemacs-chise && make + cd xemacs-chise && LANG=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 && LANG=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-base: install-ids @@ -165,6 +172,26 @@ ids: fi touch .cvs-login +apel: + make .lemi-cvs-login + cvs -z9 -d $(LEMI_CVS_ROOT) co apel + +.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 - + +$(LIBDIR)/xemacs/mule-packages: + cd $(LIBDIR)/xemacs && \ + curl $(XEMACS_PACKAGES_URL)/xemacs-mule-sumo.tar.gz \ + | $(SUDO) $(TAR) xvzf - + distclean: cd concord; make distclean