From: Glenn Morris Date: Thu, 17 May 2012 01:23:03 +0000 (-0400) Subject: Install a self-contained NS build's libexec directly into the right place X-Git-Tag: emacs-24.2.90~471^2~60 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3a4155de6637f737ff8b12ec3ceb2633f8e8fa26;p=emacs.git Install a self-contained NS build's libexec directly into the right place This is rather than installing it in one place then moving it. * configure.in (archlibdir): Set it for self-contained ns builds. (libexecdir): Don't expand it now (this is mainly cosmetic). * Makefile.in (ns_appbindir, ns_appresdir): Move them before things that may refer to them. (install-arch-dep): No need to relocate self-contained ns libexec. * lib-src/Makefile.in (ns_appbindir): New, set by configure. --- diff --git a/ChangeLog b/ChangeLog index 0b7a79cc3d6..04ce3736d5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2012-05-17 Glenn Morris + + * Makefile.in (ns_appbindir, ns_appresdir): + Move them before things that may refer to them. + (install-arch-dep): No need to relocate self-contained ns libexec. + + * configure.in (archlibdir): Set it for self-contained ns builds. + (libexecdir): Don't expand it now (this is mainly cosmetic). + 2012-05-16 Paul Eggert * configure.in: Simplify by removing CPP etc. diff --git a/Makefile.in b/Makefile.in index 171b13aa368..389bbf95f90 100644 --- a/Makefile.in +++ b/Makefile.in @@ -90,6 +90,11 @@ configuration=@configuration@ # ==================== Where To Install Things ==================== +# Location to install Emacs.app under GNUstep / Mac OS X. +# Later values may use these. +ns_appbindir=@ns_appbindir@ +ns_appresdir=@ns_appresdir@ + # The default location for installation. Everything is placed in # subdirectories of this directory. The default values for many of # the variables below are expressed in terms of this one, so you may @@ -117,8 +122,10 @@ datadir=@datadir@ sharedstatedir=@sharedstatedir@ # Where to install and expect executable files to be run by Emacs -# rather than directly by users, and other architecture-dependent -# data. ${archlibdir} is a subdirectory of this. +# rather than directly by users (and other architecture-dependent +# data, although Emacs does not have any). The executables +# are actually installed in ${archlibdir}, which is (normally) +# a subdirectory of this. libexecdir=@libexecdir@ # Where to install Emacs's man pages. @@ -158,10 +165,6 @@ VPATH=@srcdir@ # Where to find the application default. x_default_search_path=@x_default_search_path@ -# Location to install Emacs.app under NeXT/Open/GNUstep / Cocoa -ns_appbindir=@ns_appbindir@ -ns_appresdir=@ns_appresdir@ - # Where the etc/emacs.desktop file is to be installed. desktopdir=$(datarootdir)/applications @@ -475,10 +478,7 @@ install-arch-dep: mkdir fi ; \ if test -d share/info ; then rm -fr info; mv share/info . ; fi ; \ rm -fr share ) ; \ - ( if cd ${ns_appbindir}/libexec ; then \ - mv -f emacs/${version}/${configuration}/* . ; rm -fr emacs ; \ - rm -f ../bin/emacs ../bin/$(EMACSFULL) ; \ - fi ) ; \ + rm -f ${ns_appbindir}/bin/emacs ${ns_appbindir}/bin/$(EMACSFULL); \ else true ; fi ## FIXME NS self-contained: rather than installing emacs and diff --git a/configure.in b/configure.in index e35f712c3b8..8c3b3228241 100644 --- a/configure.in +++ b/configure.in @@ -1588,7 +1588,9 @@ if test "${HAVE_NS}" = yes; then if test "${EN_NS_SELF_CONTAINED}" = yes; then prefix=${ns_appresdir} exec_prefix=${ns_appbindir} - libexecdir=${ns_appbindir}/libexec + dnl This one isn't really used, only archlibdir is. + libexecdir="\${ns_appbindir}/libexec" + archlibdir="\${ns_appbindir}/libexec" LEIM_INSTALLDIR="\${ns_appresdir}/leim" fi ns_frag=$srcdir/src/ns.mk diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index aa78c25d1e1..a4a1cffaa96 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,7 @@ +2012-05-17 Glenn Morris + + * Makefile.in (ns_appbindir): New, set by configure. + 2012-05-12 Glenn Morris * Makefile.in (MKDIR_P): New, set by configure. diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index be19b6dc15c..1306e660630 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in @@ -45,6 +45,10 @@ TRANSFORM = @program_transform_name@ # ==================== Where To Install Things ==================== +# Location to install Emacs.app under GNUstep / Mac OS X. +# Later values may use this. +ns_appbindir=@ns_appbindir@ + # The default location for installation. Everything is placed in # subdirectories of this directory. The default values for many of # the variables below are expressed in terms of this one, so you may