summaryrefslogtreecommitdiff
path: root/nextstep
diff options
context:
space:
mode:
authorSam Steingold <sds@gnu.org>2014-12-03 15:45:23 -0500
committerSam Steingold <sds@gnu.org>2014-12-03 15:45:23 -0500
commit3f33f2210cae26d332141a6aeb9abb9e34f97fc7 (patch)
tree0f0f337e2391dbc44e010019cafcc39114793e1d /nextstep
parentb3298507f92f8cc17dc35090e4036aac787af682 (diff)
downloademacs-3f33f2210cae26d332141a6aeb9abb9e34f97fc7.tar.gz
enable in-place GUI
* nextstep/Makefile.in (links): New phony target to create a fake installation pointing back to the source tree to run GUI Emacs in-place (http://article.gmane.org/gmane.emacs.devel:178330).
Diffstat (limited to 'nextstep')
-rw-r--r--nextstep/ChangeLog6
-rw-r--r--nextstep/Makefile.in19
2 files changed, 22 insertions, 3 deletions
diff --git a/nextstep/ChangeLog b/nextstep/ChangeLog
index 4bb84bcae4d..8b44d5c149c 100644
--- a/nextstep/ChangeLog
+++ b/nextstep/ChangeLog
@@ -1,3 +1,9 @@
+2014-12-03 Sam Steingold <sds@gnu.org>
+
+ * Makefile.in (links): New phony target to create a fake
+ installation pointing back to the source tree to run GUI Emacs
+ in-place (http://article.gmane.org/gmane.emacs.devel:178330).
+
2014-11-22 Glenn Morris <rgm@gnu.org>
* templates/Info-gnustep.plist.in: Let configure set URL.
diff --git a/nextstep/Makefile.in b/nextstep/Makefile.in
index 52f321109b7..c07fe85ba8d 100644
--- a/nextstep/Makefile.in
+++ b/nextstep/Makefile.in
@@ -8,12 +8,12 @@
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
-##
+##
## GNU Emacs is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
-##
+##
## You should have received a copy of the GNU General Public License
## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
@@ -50,10 +50,23 @@ ${ns_appbindir}/Emacs: ${ns_appdir} ${ns_check_file} ../src/emacs${EXEEXT} | \
${ns_appbindir}
cp -f ../src/emacs${EXEEXT} $@
-.PHONY: all
+.PHONY: all links
all: ${ns_appdir} ${ns_appbindir}/Emacs
+# create a fake installation pointing back to the source tree
+# to run GUI Emacs in-place
+links : ../src/emacs${EXEEXT} | ${ns_appbindir}
+ for d in $(shell cd ${srcdir}/${ns_appsrc}; find . -type d); do ${MKDIR_P} ${ns_appdir}/$$d; done
+ for f in $(shell cd ${srcdir}/${ns_appsrc}; find . -type f); do ln -s $(shell cd ${srcdir}; pwd -P)/${ns_appsrc}/$$f ${ns_appdir}/$$f; done
+ for d in $(shell cd ${ns_appsrc}; find . -type d); do ${MKDIR_P} ${ns_appdir}/$$d; done
+ for f in $(shell cd ${ns_appsrc}; find . -type f); do ln -s $(shell pwd -P)/${ns_appsrc}/$$f ${ns_appdir}/$$f; done
+ ln -s ../../../../../lisp ${ns_appdir}/Contents/Resources
+ ln -s ../../../../../etc ${ns_appdir}/Contents/Resources
+ ln -s ../../../../../info ${ns_appdir}/Contents/Resources
+ ln -s ../../../../src/emacs${EXEEXT} ${ns_appbindir}/Emacs
+ ln -s ../../../../lib-src ${ns_appbindir}/bin
+ ln -s ../../../../lib-src ${ns_appbindir}/libexec
.PHONY: clean distclean bootstrap-clean maintainer-clean