diff options
| author | Glenn Morris | 2012-05-18 13:56:08 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-05-18 13:56:08 -0400 |
| commit | 660c8c1e9a08c236700574bd8bd8722c586cd62a (patch) | |
| tree | 95368a18d847b45bdac85517d48cbdcea1ca1506 | |
| parent | 37f36bcb56e5b1d909a1f611756eac271ede0862 (diff) | |
| download | emacs-660c8c1e9a08c236700574bd8bd8722c586cd62a.tar.gz emacs-660c8c1e9a08c236700574bd8bd8722c586cd62a.zip | |
* Makefile.in (install-arch-indep): Split into several rules.
(install-doc, innstall-info, install-man): New rules.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Makefile.in | 51 |
2 files changed, 31 insertions, 23 deletions
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-05-18 Glenn Morris <rgm@gnu.org> | 1 | 2012-05-18 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (install-arch-indep): Split into several rules. | ||
| 4 | (install-doc, innstall-info, install-man): New rules. | ||
| 5 | |||
| 3 | * configure.in (mandir): May as well include it in the NS app bundle. | 6 | * configure.in (mandir): May as well include it in the NS app bundle. |
| 4 | 7 | ||
| 5 | * configure.in (INSTALL_ARCH_INDEP_EXTRA): New output variable. | 8 | * configure.in (INSTALL_ARCH_INDEP_EXTRA): New output variable. |
diff --git a/Makefile.in b/Makefile.in index 69757d59e6c..c3d6ea01193 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -483,10 +483,9 @@ install-arch-dep: install-arch-indep | |||
| 483 | fi | 483 | fi |
| 484 | 484 | ||
| 485 | ## In the share directory, we are deleting: | 485 | ## In the share directory, we are deleting: |
| 486 | ## applications (with emacs.desktop) | 486 | ## applications (with emacs.desktop, also found in etc/) |
| 487 | ## emacs (basically empty) | 487 | ## emacs (basically empty except for unneeded site-lisp directories) |
| 488 | ## icons (duplicates etc/images/icons/hicolor) | 488 | ## icons (duplicates etc/images/icons/hicolor) |
| 489 | ## man (maybe we should be installing this one, like info) | ||
| 490 | 489 | ||
| 491 | ## This is install-etc for everything except self-contained-ns builds. | 490 | ## This is install-etc for everything except self-contained-ns builds. |
| 492 | ## For them, it is empty. | 491 | ## For them, it is empty. |
| @@ -504,20 +503,10 @@ set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \ | |||
| 504 | ### the exception is the DOC-* files, which are copied | 503 | ### the exception is the DOC-* files, which are copied |
| 505 | ### from the build directory. | 504 | ### from the build directory. |
| 506 | 505 | ||
| 507 | ## Note that we copy DOC* and then delete DOC | ||
| 508 | ## as a workaround for a bug in tar on Ultrix 4.2. | ||
| 509 | ## Ultrix is no longer supported since 23.1, but the relevant line | ||
| 510 | ## has another effect. We copy the entire etc/ directory from the | ||
| 511 | ## source tree first. For an in-tree build, this will include | ||
| 512 | ## any DOC* files there may be. So rm DOC does have an effect. | ||
| 513 | ## FIXME When we copy etc we should exclude DOC*, then copy only | 506 | ## FIXME When we copy etc we should exclude DOC*, then copy only |
| 514 | ## the relevant one. We cannot delete DOC* from the destination directory, | 507 | ## the relevant one. We cannot delete DOC* from the destination directory, |
| 515 | ## because that may include pre-existing files from another emacs. | 508 | ## because that may include pre-existing files from another emacs. |
| 516 | 509 | ||
| 517 | ## We install only the relevant DOC file if possible | ||
| 518 | ## (ie DOC-${version}.buildnumber), otherwise DOC-${version}*. | ||
| 519 | ## (Note "otherwise" is inaccurate since 2009-08-23.) | ||
| 520 | |||
| 521 | ## Note that the Makefiles in the etc directory are potentially useful | 510 | ## Note that the Makefiles in the etc directory are potentially useful |
| 522 | ## in an installed Emacs, so should not be excluded. | 511 | ## in an installed Emacs, so should not be excluded. |
| 523 | 512 | ||
| @@ -534,7 +523,7 @@ set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \ | |||
| 534 | ## Is it really Emacs's job to create those directories? | 523 | ## Is it really Emacs's job to create those directories? |
| 535 | ## Should we also be ensuring they contain subdirs.el files? | 524 | ## Should we also be ensuring they contain subdirs.el files? |
| 536 | ## It would be easy to do, just use write_subdir. | 525 | ## It would be easy to do, just use write_subdir. |
| 537 | install-arch-indep: info install-leim ${INSTALL_ARCH_INDEP_EXTRA} | 526 | install-arch-indep: install-leim install-doc install-info install-man ${INSTALL_ARCH_INDEP_EXTRA} |
| 538 | umask 022 ; \ | 527 | umask 022 ; \ |
| 539 | $(MKDIR_P) $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` | 528 | $(MKDIR_P) $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` |
| 540 | -set ${COPYDESTS} ; \ | 529 | -set ${COPYDESTS} ; \ |
| @@ -574,6 +563,27 @@ install-arch-indep: info install-leim ${INSTALL_ARCH_INDEP_EXTRA} | |||
| 574 | subdir=$(DESTDIR)${datadir}/emacs/site-lisp ; \ | 563 | subdir=$(DESTDIR)${datadir}/emacs/site-lisp ; \ |
| 575 | ${write_subdir} || true | 564 | ${write_subdir} || true |
| 576 | -unset CDPATH; \ | 565 | -unset CDPATH; \ |
| 566 | if [ -n "${GZIP_PROG}" ]; \ | ||
| 567 | then \ | ||
| 568 | echo "Compressing *.el ..." ; \ | ||
| 569 | (cd $(DESTDIR)${lispdir}; for f in `find . -name "*.elc" -print`; do \ | ||
| 570 | ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ | ||
| 571 | done) \ | ||
| 572 | else true; fi | ||
| 573 | -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS} | ||
| 574 | |||
| 575 | ## We install only the relevant DOC file if possible | ||
| 576 | ## (ie DOC-${version}.buildnumber), otherwise DOC-${version}*. | ||
| 577 | ## (Note "otherwise" is inaccurate since 2009-08-23.) | ||
| 578 | |||
| 579 | ## Note that we copy DOC* and then delete DOC | ||
| 580 | ## as a workaround for a bug in tar on Ultrix 4.2. | ||
| 581 | ## Ultrix is no longer supported since 23.1, but the relevant line | ||
| 582 | ## has another effect. We copy the entire etc/ directory from the | ||
| 583 | ## source tree first. For an in-tree build, this will include | ||
| 584 | ## any DOC* files there may be. So rm DOC does have an effect. | ||
| 585 | install-doc: | ||
| 586 | -unset CDPATH; \ | ||
| 577 | umask 022; ${MKDIR_P} $(DESTDIR)${docdir} ; \ | 587 | umask 022; ${MKDIR_P} $(DESTDIR)${docdir} ; \ |
| 578 | if [ `(cd ./etc; /bin/pwd)` != `(cd $(DESTDIR)${docdir}; /bin/pwd)` ]; \ | 588 | if [ `(cd ./etc; /bin/pwd)` != `(cd $(DESTDIR)${docdir}; /bin/pwd)` ]; \ |
| 579 | then \ | 589 | then \ |
| @@ -591,14 +601,8 @@ install-arch-indep: info install-leim ${INSTALL_ARCH_INDEP_EXTRA} | |||
| 591 | chown $${installuser} DOC*; \ | 601 | chown $${installuser} DOC*; \ |
| 592 | if test "`echo DOC-*`" != "DOC-*"; then rm -f DOC; fi); \ | 602 | if test "`echo DOC-*`" != "DOC-*"; then rm -f DOC; fi); \ |
| 593 | else true; fi | 603 | else true; fi |
| 594 | -unset CDPATH; \ | 604 | |
| 595 | if [ -n "${GZIP_PROG}" ]; \ | 605 | install-info: info |
| 596 | then \ | ||
| 597 | echo "Compressing *.el ..." ; \ | ||
| 598 | (cd $(DESTDIR)${lispdir}; for f in `find . -name "*.elc" -print`; do \ | ||
| 599 | ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ | ||
| 600 | done) \ | ||
| 601 | else true; fi | ||
| 602 | umask 022; ${MKDIR_P} $(DESTDIR)${infodir} | 606 | umask 022; ${MKDIR_P} $(DESTDIR)${infodir} |
| 603 | -unset CDPATH; \ | 607 | -unset CDPATH; \ |
| 604 | thisdir=`/bin/pwd`; \ | 608 | thisdir=`/bin/pwd`; \ |
| @@ -626,7 +630,8 @@ install-arch-indep: info install-leim ${INSTALL_ARCH_INDEP_EXTRA} | |||
| 626 | ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ | 630 | ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ |
| 627 | done); \ | 631 | done); \ |
| 628 | else true; fi | 632 | else true; fi |
| 629 | -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS} | 633 | |
| 634 | install-man: | ||
| 630 | umask 022; ${MKDIR_P} $(DESTDIR)${man1dir} | 635 | umask 022; ${MKDIR_P} $(DESTDIR)${man1dir} |
| 631 | thisdir=`/bin/pwd`; \ | 636 | thisdir=`/bin/pwd`; \ |
| 632 | cd ${mansrcdir}; \ | 637 | cd ${mansrcdir}; \ |