X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile.in.in;h=0f4ef8e94f4fe34b6ab2fa7581739f4d3cbff24f;hb=8c6ad4edf8c1f58eeff7372c70805c2c8f326523;hp=dfc5bc50ed982313b397485fd73901a169fd40d9;hpb=4325dbbcdcdb80daba5f060ef4bb5c19a6beafe3;p=chise%2Fxemacs-chise.git.1 diff --git a/Makefile.in.in b/Makefile.in.in index dfc5bc5..0f4ef8e 100644 --- a/Makefile.in.in +++ b/Makefile.in.in @@ -241,8 +241,8 @@ INSTALL_ARCH_DEP_SUBDIR = @INSTALL_ARCH_DEP_SUBDIR@ ## avoid nuking an existing dir file, so we don't do that here; ## instead, we have written out explicit code in the `install' targets. #ifdef HAVE_CHISE -COPYDIR = ${srcdir}/etc ${srcdir}/lisp ${srcdir}/lib-src/chise-db -COPYDESTS = ${etcdir} ${lispdir} ${archlibdir}/chise-db +COPYDIR = ${srcdir}/etc ${srcdir}/lisp +COPYDESTS = ${etcdir} ${lispdir} #else COPYDIR = ${srcdir}/etc ${srcdir}/lisp COPYDESTS = ${etcdir} ${lispdir} @@ -518,13 +518,29 @@ install-arch-indep: mkdir info chmod 0644 ${mandir}/$${page}${manext} ; \ done #ifdef HAVE_LIBCHISE - ${LN_S} ${archlibdir}/chise-db `${blddir}/src/${PROGNAME} -batch -vanilla -eval "\ -(let ((path (expand-file-name \"db\" chise-db-directory)))\ + ${blddir}/src/${PROGNAME} -batch -vanilla -eval "\ +(let ((path (expand-file-name \"db\" chise-db-directory))\ + (data-dir \"${etcdir}/chise-db\")\ + (i 0)\ + (default-directory chise-db-directory)\ + len chise-dir pre)\ (if (file-exists-p chise-db-directory)\ (if (file-exists-p path)\ (delete-file path))\ (make-directory chise-db-directory t))\ - (princ path))"` + (setq len (min (length data-dir) (length path)))\ + (while (and (< i len)\ + (eq (aref path i) (aref data-dir i)))\ + (setq i (1+ i)))\ + (setq data-dir (substring data-dir i)\ + chise-dir (substring path i))\ + (setq i 0\ + len (length chise-dir))\ + (while (< i len)\ + (if (eq (aref chise-dir i) ?/)\ + (setq pre (concat pre \"../\")))\ + (setq i (1+ i)))\ + (make-symbolic-link (concat pre data-dir) path t))" #endif @echo "If you would like to save approximately 2M of disk space, do" @echo "make gzip-el"