diff options
| author | Glenn Morris | 2012-05-17 14:28:24 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-05-17 14:28:24 -0400 |
| commit | 05f3d308da1b93a1fffbb6653c84da02334ff0b8 (patch) | |
| tree | ff9ca24ac6ee0f489e70ed9ab0a5fdc0a4edb490 | |
| parent | 9f1ea7dcd994c63d754ba74fc3522fa725fd0f0d (diff) | |
| download | emacs-05f3d308da1b93a1fffbb6653c84da02334ff0b8.tar.gz emacs-05f3d308da1b93a1fffbb6653c84da02334ff0b8.zip | |
Further simplify install-arch-dep for self-contained NS builds
* Makefile.in (install-arch-dep): Use $write_subdir.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | Makefile.in | 17 |
2 files changed, 11 insertions, 8 deletions
| @@ -1,7 +1,7 @@ | |||
| 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): New. | 3 | * Makefile.in (write_subdir): New. |
| 4 | (install-arch-indep): Use $write_subdir. | 4 | (install-arch-indep, install-arch-dep): Use $write_subdir. |
| 5 | 5 | ||
| 6 | * configure.in (docdir, etcdir, infodir, lispdir): | 6 | * configure.in (docdir, etcdir, infodir, lispdir): |
| 7 | For a self-contained ns build, set these to the appropriate values. | 7 | For a self-contained ns build, set these to the appropriate values. |
diff --git a/Makefile.in b/Makefile.in index 630ca2ff3ac..0f5ec8a0c7c 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -473,15 +473,18 @@ install-arch-dep: mkdir | |||
| 473 | rm -f $(DESTDIR)${bindir}/$(EMACS) ; \ | 473 | rm -f $(DESTDIR)${bindir}/$(EMACS) ; \ |
| 474 | ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \ | 474 | ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) || true ; \ |
| 475 | else \ | 475 | else \ |
| 476 | ( cd ${ns_appresdir} || exit 1 ; \ | 476 | subdir=${ns_appresdir}/site-lisp; \ |
| 477 | if test -d share/emacs ; then \ | 477 | ${MKDIR_P} $${subdir}; \ |
| 478 | for dir in share/emacs/${version}/*; do \ | 478 | ${write_subdir} || exit 1; \ |
| 479 | rm -fr `basename "$$dir"`; mv "$$dir" . ; \ | 479 | rm -rf ${ns_appresdir}/share; \ |
| 480 | done ; \ | ||
| 481 | fi ; \ | ||
| 482 | rm -fr share ) ; \ | ||
| 483 | fi | 480 | fi |
| 484 | 481 | ||
| 482 | ## In the share directory, we are deleting: | ||
| 483 | ## applications (with emacs.desktop) | ||
| 484 | ## emacs (basically empty) | ||
| 485 | ## icons (duplicates etc/images/icons/hicolor) | ||
| 486 | ## man (maybe we should be installing this one, like info) | ||
| 487 | |||
| 485 | ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html | 488 | ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html |
| 486 | ## Needs to be the user running install, so configure can't set it. | 489 | ## Needs to be the user running install, so configure can't set it. |
| 487 | set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \ | 490 | set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \ |