diff options
| author | Glenn Morris | 2012-05-17 14:47:52 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-05-17 14:47:52 -0400 |
| commit | 4c54abe198bf9f412a8add28b9caf68e9f1f40d7 (patch) | |
| tree | a7adb2545e7633cafa6233026e22e723e8516d18 | |
| parent | 53a84f3c9e044e03b40a9d5dfb21cb65b3bbe5f5 (diff) | |
| download | emacs-4c54abe198bf9f412a8add28b9caf68e9f1f40d7.tar.gz emacs-4c54abe198bf9f412a8add28b9caf68e9f1f40d7.zip | |
More simplification for installation of site-lisp directories
* Makefile.in (write_subdir): Create the directory if needed.
(install-arch-dep, mkdir): No need to make site-lisp directories.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Makefile.in | 10 |
2 files changed, 7 insertions, 6 deletions
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-05-17 Glenn Morris <rgm@gnu.org> | 1 | 2012-05-17 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (write_subdir): Create the directory if needed. | ||
| 4 | (install-arch-dep, mkdir): No need to make site-lisp directories. | ||
| 5 | |||
| 3 | * Makefile.in (write_subdir): New. | 6 | * Makefile.in (write_subdir): New. |
| 4 | (install-arch-indep, install-arch-dep): Use $write_subdir. | 7 | (install-arch-indep, install-arch-dep): Use $write_subdir. |
| 5 | 8 | ||
diff --git a/Makefile.in b/Makefile.in index d409bce88a7..5c76cbb500e 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -460,11 +460,12 @@ install: all install-arch-indep install-arch-dep install-leim blessmail | |||
| 460 | write_subdir=if [ -f $${subdir}/subdirs.el ]; \ | 460 | write_subdir=if [ -f $${subdir}/subdirs.el ]; \ |
| 461 | then true; \ | 461 | then true; \ |
| 462 | else \ | 462 | else \ |
| 463 | umask 022; \ | ||
| 464 | ${MKDIR_P} $${subdir}; \ | ||
| 463 | (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \ | 465 | (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \ |
| 464 | echo " (normal-top-level-add-subdirs-to-load-path))") \ | 466 | echo " (normal-top-level-add-subdirs-to-load-path))") \ |
| 465 | > $${subdir}/subdirs.el; \ | 467 | > $${subdir}/subdirs.el; \ |
| 466 | fi; \ | 468 | fi |
| 467 | chmod a+r $${subdir}/subdirs.el | ||
| 468 | 469 | ||
| 469 | ### Install the executables that were compiled specifically for this machine. | 470 | ### Install the executables that were compiled specifically for this machine. |
| 470 | ### It would be nice to do something for a parallel make | 471 | ### It would be nice to do something for a parallel make |
| @@ -484,7 +485,6 @@ install-arch-dep: mkdir | |||
| 484 | ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \ | 485 | ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \ |
| 485 | else \ | 486 | else \ |
| 486 | subdir=${ns_appresdir}/site-lisp; \ | 487 | subdir=${ns_appresdir}/site-lisp; \ |
| 487 | ${MKDIR_P} $${subdir}; \ | ||
| 488 | ${write_subdir} || exit 1; \ | 488 | ${write_subdir} || exit 1; \ |
| 489 | rm -rf ${ns_appresdir}/share; \ | 489 | rm -rf ${ns_appresdir}/share; \ |
| 490 | fi | 490 | fi |
| @@ -659,7 +659,7 @@ install-leim: leim/Makefile mkdir | |||
| 659 | install-strip: | 659 | install-strip: |
| 660 | $(MAKE) $(MFLAGS) INSTALL_STRIP=-s install | 660 | $(MAKE) $(MFLAGS) INSTALL_STRIP=-s install |
| 661 | 661 | ||
| 662 | ### Build all the directories we're going to install Emacs in. | 662 | ### Build some of the directories we're going to install Emacs in. |
| 663 | ### We set the umask so that any created directories are world-readable. | 663 | ### We set the umask so that any created directories are world-readable. |
| 664 | ### FIXME it would be good to warn about non-standard permissions of | 664 | ### FIXME it would be good to warn about non-standard permissions of |
| 665 | ### pre-existing directories, but that does not seem easy. | 665 | ### pre-existing directories, but that does not seem easy. |
| @@ -675,8 +675,6 @@ mkdir: FRC | |||
| 675 | $(MKDIR_P) $(DESTDIR)${datadir} ${COPYDESTS} \ | 675 | $(MKDIR_P) $(DESTDIR)${datadir} ${COPYDESTS} \ |
| 676 | $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \ | 676 | $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \ |
| 677 | $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \ | 677 | $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \ |
| 678 | $(DESTDIR)${datadir}/emacs/site-lisp \ | ||
| 679 | $(DESTDIR)${datadir}/emacs/${version}/site-lisp \ | ||
| 680 | $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` \ | 678 | $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` \ |
| 681 | $(DESTDIR)${desktopdir} $${icondirs} | 679 | $(DESTDIR)${desktopdir} $${icondirs} |
| 682 | 680 | ||