diff options
| author | Glenn Morris | 2012-05-01 23:53:21 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-05-01 23:53:21 -0700 |
| commit | a36e64d04bd36f982cd82dfbc4eba8bf5d79cb06 (patch) | |
| tree | eb05c8804f4c4932281a5297758e2d4a2597171c | |
| parent | 3fef57a2f66ec269f8ed016ad5bf39f2346c6b54 (diff) | |
| download | emacs-a36e64d04bd36f982cd82dfbc4eba8bf5d79cb06.tar.gz emacs-a36e64d04bd36f982cd82dfbc4eba8bf5d79cb06.zip | |
Makefile.in fix for systems without /bin/install or somesuch
* Makefile.in (install-arch-indep, uninstall):
Ensure that INSTALL-type commands are run from top-level.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Makefile.in | 12 |
2 files changed, 13 insertions, 2 deletions
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-05-02 Glenn Morris <rgm@gnu.org> | 1 | 2012-05-02 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (install-arch-indep, uninstall): | ||
| 4 | Ensure that INSTALL-type commands are run from top-level. | ||
| 5 | |||
| 3 | * Makefile.in (INFO_FILES): Add emacs-gnutls; accidentally | 6 | * Makefile.in (INFO_FILES): Add emacs-gnutls; accidentally |
| 4 | omitted from 2012-04-12 backport from trunk. | 7 | omitted from 2012-04-12 backport from trunk. |
| 5 | 8 | ||
diff --git a/Makefile.in b/Makefile.in index d57c1690f47..7ee41a5bdd5 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -236,6 +236,11 @@ gamedir=@gamedir@ | |||
| 236 | # ==================== Utility Programs for the Build ==================== | 236 | # ==================== Utility Programs for the Build ==================== |
| 237 | 237 | ||
| 238 | # Allow the user to specify the install program. | 238 | # Allow the user to specify the install program. |
| 239 | # Note that if the system does not provide a suitable install, | ||
| 240 | # configure will use build-aux/install-sh. Annoyingly, it does | ||
| 241 | # not use an absolute path. So we must take care to always run | ||
| 242 | # INSTALL-type commands from the top-level directory. | ||
| 243 | # This explains (I think) the cd thisdir seen in several install rules. | ||
| 239 | INSTALL = @INSTALL@ | 244 | INSTALL = @INSTALL@ |
| 240 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 245 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 241 | INSTALL_DATA = @INSTALL_DATA@ | 246 | INSTALL_DATA = @INSTALL_DATA@ |
| @@ -621,7 +626,8 @@ install-arch-indep: mkdir info install-etc | |||
| 621 | for elt in $(INFO_FILES); do \ | 626 | for elt in $(INFO_FILES); do \ |
| 622 | test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \ | 627 | test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \ |
| 623 | for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ | 628 | for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ |
| 624 | ${INSTALL_DATA} $$f $(DESTDIR)${infodir}/$$f; \ | 629 | (cd $${thisdir}; \ |
| 630 | ${INSTALL_DATA} ${srcdir}/info/$$f $(DESTDIR)${infodir}/$$f); \ | ||
| 625 | chmod a+r $(DESTDIR)${infodir}/$$f; \ | 631 | chmod a+r $(DESTDIR)${infodir}/$$f; \ |
| 626 | if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \ | 632 | if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \ |
| 627 | rm -f $(DESTDIR)${infodir}/$$f.gz; \ | 633 | rm -f $(DESTDIR)${infodir}/$$f.gz; \ |
| @@ -724,9 +730,11 @@ uninstall: | |||
| 724 | fi ; \ | 730 | fi ; \ |
| 725 | done | 731 | done |
| 726 | -rm -rf $(DESTDIR)${libexecdir}/emacs/${version} | 732 | -rm -rf $(DESTDIR)${libexecdir}/emacs/${version} |
| 733 | thisdir=`/bin/pwd`; \ | ||
| 727 | (cd $(DESTDIR)${infodir} && \ | 734 | (cd $(DESTDIR)${infodir} && \ |
| 728 | for elt in $(INFO_FILES); do \ | 735 | for elt in $(INFO_FILES); do \ |
| 729 | $(INSTALL_INFO) --remove --info-dir=. $$elt; \ | 736 | (cd $${thisdir}; \ |
| 737 | $(INSTALL_INFO) --remove --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ | ||
| 730 | if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \ | 738 | if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \ |
| 731 | ext=.gz; else ext=; fi; \ | 739 | ext=.gz; else ext=; fi; \ |
| 732 | for f in `ls $$elt$$ext $$elt-[1-9]$$ext $$elt-[1-9][0-9]$$ext 2>/dev/null`; do \ | 740 | for f in `ls $$elt$$ext $$elt-[1-9]$$ext $$elt-[1-9][0-9]$$ext 2>/dev/null`; do \ |