diff options
| author | Glenn Morris | 2012-05-16 22:14:50 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-05-16 22:14:50 -0700 |
| commit | 96182ae6973a088e7c3fffd489acf626d0b3a6cb (patch) | |
| tree | 7170ad9f2ba1d67498a93e41d973291bcbbd0fd7 | |
| parent | 3a4155de6637f737ff8b12ec3ceb2633f8e8fa26 (diff) | |
| download | emacs-96182ae6973a088e7c3fffd489acf626d0b3a6cb.tar.gz emacs-96182ae6973a088e7c3fffd489acf626d0b3a6cb.zip | |
Minor optimization for install-arch-dep with self-contained ns build
* Makefile.in (install-arch-dep): For a self-contained ns build,
don't bother installing binaries then immediately deleting them.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Makefile.in | 18 |
2 files changed, 10 insertions, 11 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 (install-arch-dep): For a self-contained ns build, | ||
| 4 | don't bother installing binaries then immediately deleting them. | ||
| 5 | |||
| 3 | * Makefile.in (ns_appbindir, ns_appresdir): | 6 | * Makefile.in (ns_appbindir, ns_appresdir): |
| 4 | Move them before things that may refer to them. | 7 | Move them before things that may refer to them. |
| 5 | (install-arch-dep): No need to relocate self-contained ns libexec. | 8 | (install-arch-dep): No need to relocate self-contained ns libexec. |
diff --git a/Makefile.in b/Makefile.in index 389bbf95f90..e9ab4e6733d 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -465,11 +465,12 @@ install-arch-dep: mkdir | |||
| 465 | exec_prefix=${exec_prefix} bindir=${bindir} \ | 465 | exec_prefix=${exec_prefix} bindir=${bindir} \ |
| 466 | libexecdir=${libexecdir} archlibdir=${archlibdir} \ | 466 | libexecdir=${libexecdir} archlibdir=${archlibdir} \ |
| 467 | INSTALL_STRIP=${INSTALL_STRIP}) | 467 | INSTALL_STRIP=${INSTALL_STRIP}) |
| 468 | ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL) | 468 | if test "${ns_appresdir}" = ""; then \ |
| 469 | -chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) | 469 | ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL) || exit 1 ; \ |
| 470 | rm -f $(DESTDIR)${bindir}/$(EMACS) | 470 | chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) ; \ |
| 471 | -ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) | 471 | rm -f $(DESTDIR)${bindir}/$(EMACS) ; \ |
| 472 | if test "${ns_appresdir}" != ""; then \ | 472 | ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \ |
| 473 | else \ | ||
| 473 | ( cd ${ns_appresdir} ; \ | 474 | ( cd ${ns_appresdir} ; \ |
| 474 | if test -d share/emacs ; then \ | 475 | if test -d share/emacs ; then \ |
| 475 | for dir in share/emacs/${version}/*; do \ | 476 | for dir in share/emacs/${version}/*; do \ |
| @@ -478,12 +479,7 @@ install-arch-dep: mkdir | |||
| 478 | fi ; \ | 479 | fi ; \ |
| 479 | if test -d share/info ; then rm -fr info; mv share/info . ; fi ; \ | 480 | if test -d share/info ; then rm -fr info; mv share/info . ; fi ; \ |
| 480 | rm -fr share ) ; \ | 481 | rm -fr share ) ; \ |
| 481 | rm -f ${ns_appbindir}/bin/emacs ${ns_appbindir}/bin/$(EMACSFULL); \ | 482 | fi |
| 482 | else true ; fi | ||
| 483 | |||
| 484 | ## FIXME NS self-contained: rather than installing emacs and | ||
| 485 | ## EMACSFULL, then deleting them, obviously it would be better to not | ||
| 486 | ## install them in the first place. | ||
| 487 | 483 | ||
| 488 | ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html | 484 | ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html |
| 489 | ## Needs to be the user running install, so configure can't set it. | 485 | ## Needs to be the user running install, so configure can't set it. |