diff options
| author | Glenn Morris | 2012-05-18 14:40:19 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-05-18 14:40:19 -0400 |
| commit | 29473393648da830a6e954672e59cfbf4012049b (patch) | |
| tree | 8f2d3c12f8f4d313fce5f34f89978d173977b588 | |
| parent | bfed83348183b8a4468bdad717c66d5fbb444cdb (diff) | |
| download | emacs-29473393648da830a6e954672e59cfbf4012049b.tar.gz emacs-29473393648da830a6e954672e59cfbf4012049b.zip | |
* Makefile.in: Install only the relevant DOC file.
This only affects in-tree builds where you have several versions
emacs-24.1.50.1, .2, etc lying around.
* Makefile.in: (install-arch-indep): Delete etc/DOC*.
(install-doc): No more need to delete etc/DOC.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Makefile.in | 34 |
2 files changed, 17 insertions, 21 deletions
| @@ -1,5 +1,9 @@ | |||
| 1 | 2012-05-18 Glenn Morris <rgm@gnu.org> | 1 | 2012-05-18 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in: Install only the relevant DOC file. | ||
| 4 | (install-arch-indep): Delete etc/DOC*. | ||
| 5 | (install-doc): No more need to delete etc/DOC. | ||
| 6 | |||
| 3 | * Makefile.in (install-arch-indep): Split into several rules. | 7 | * Makefile.in (install-arch-indep): Split into several rules. |
| 4 | (install-doc, innstall-info, install-man): New rules. | 8 | (install-doc, innstall-info, install-man): New rules. |
| 5 | 9 | ||
diff --git a/Makefile.in b/Makefile.in index 887a591110a..4a21a798350 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -499,16 +499,8 @@ set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \ | |||
| 499 | done | 499 | done |
| 500 | 500 | ||
| 501 | ### Install the files that are machine-independent. | 501 | ### Install the files that are machine-independent. |
| 502 | ### Most of them come straight from the distribution; | 502 | ### Most of them come straight from the distribution; the exception is |
| 503 | ### the exception is the DOC-* files, which are copied | 503 | ### the DOC file, which is copied from the build directory. |
| 504 | ### from the build directory. | ||
| 505 | |||
| 506 | ## FIXME When we copy etc we should exclude DOC*, then copy only | ||
| 507 | ## the relevant one. We cannot delete DOC* from the destination directory, | ||
| 508 | ## because that may include pre-existing files from another emacs. | ||
| 509 | |||
| 510 | ## Note that the Makefiles in the etc directory are potentially useful | ||
| 511 | ## in an installed Emacs, so should not be excluded. | ||
| 512 | 504 | ||
| 513 | ## We delete each directory in ${COPYDESTS} before we copy into it; | 505 | ## We delete each directory in ${COPYDESTS} before we copy into it; |
| 514 | ## that way, we can reinstall over directories that have been put in | 506 | ## that way, we can reinstall over directories that have been put in |
| @@ -516,6 +508,14 @@ set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \ | |||
| 516 | ## into RCS). In order to make this safe, we make sure that the | 508 | ## into RCS). In order to make this safe, we make sure that the |
| 517 | ## source exists and is distinct from the destination. | 509 | ## source exists and is distinct from the destination. |
| 518 | 510 | ||
| 511 | ## We delete etc/DOC* because there may be irrelevant DOC files from | ||
| 512 | ## other builds in the source directory. This is ok because we just | ||
| 513 | ## deleted the entire installed etc/ directory and recreated it. | ||
| 514 | ## install-doc installs the relevant DOC. | ||
| 515 | |||
| 516 | ## Note that the Makefiles in the etc directory are potentially useful | ||
| 517 | ## in an installed Emacs, so should not be excluded. | ||
| 518 | |||
| 519 | ## I'm not sure creating locallisppath here serves any useful purpose. | 519 | ## I'm not sure creating locallisppath here serves any useful purpose. |
| 520 | ## If it has the default value, then the later write_subdir commands | 520 | ## If it has the default value, then the later write_subdir commands |
| 521 | ## will ensure all these components exist. | 521 | ## will ensure all these components exist. |
| @@ -541,6 +541,7 @@ install-arch-indep: install-leim install-info install-man ${INSTALL_ARCH_INDEP_E | |||
| 541 | (cd $${dir}; tar -chf - . ) \ | 541 | (cd $${dir}; tar -chf - . ) \ |
| 542 | | (cd $${dest}; umask 022; \ | 542 | | (cd $${dest}; umask 022; \ |
| 543 | tar -xvf - && cat > /dev/null) || exit 1; \ | 543 | tar -xvf - && cat > /dev/null) || exit 1; \ |
| 544 | [ "$${dir}" != "${srcdir}/etc" ] || rm -f $${dest}/DOC* ; \ | ||
| 544 | find $${dest} -exec chown $${installuser} {} ';' ;\ | 545 | find $${dest} -exec chown $${installuser} {} ';' ;\ |
| 545 | for subdir in `find $${dest} -type d -print` ; do \ | 546 | for subdir in `find $${dest} -type d -print` ; do \ |
| 546 | chmod a+rx $${subdir} ; \ | 547 | chmod a+rx $${subdir} ; \ |
| @@ -576,13 +577,6 @@ install-arch-indep: install-leim install-info install-man ${INSTALL_ARCH_INDEP_E | |||
| 576 | ## (ie DOC-${version}.buildnumber), otherwise DOC-${version}*. | 577 | ## (ie DOC-${version}.buildnumber), otherwise DOC-${version}*. |
| 577 | ## (Note "otherwise" is inaccurate since 2009-08-23.) | 578 | ## (Note "otherwise" is inaccurate since 2009-08-23.) |
| 578 | 579 | ||
| 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 | |||
| 586 | ## Note that install-arch-indep deletes and recreates the entire | 580 | ## Note that install-arch-indep deletes and recreates the entire |
| 587 | ## installed etc/ directory, so we need it to run before this does. | 581 | ## installed etc/ directory, so we need it to run before this does. |
| 588 | install-doc: install-arch-indep | 582 | install-doc: install-arch-indep |
| @@ -599,10 +593,8 @@ install-doc: install-arch-indep | |||
| 599 | fi; \ | 593 | fi; \ |
| 600 | echo "Copying etc/$${docfile} to $(DESTDIR)${docdir} ..." ; \ | 594 | echo "Copying etc/$${docfile} to $(DESTDIR)${docdir} ..." ; \ |
| 601 | ${INSTALL_DATA} etc/$${docfile} $(DESTDIR)${docdir}/$${docfile}; \ | 595 | ${INSTALL_DATA} etc/$${docfile} $(DESTDIR)${docdir}/$${docfile}; \ |
| 602 | (cd $(DESTDIR)$(docdir); \ | 596 | $(set_installuser); \ |
| 603 | $(set_installuser); \ | 597 | chown $${installuser} $(DESTDIR)${docdir}/$${docfile} || true ; \ |
| 604 | chown $${installuser} DOC*; \ | ||
| 605 | if test "`echo DOC-*`" != "DOC-*"; then rm -f DOC; fi); \ | ||
| 606 | else true; fi | 598 | else true; fi |
| 607 | 599 | ||
| 608 | install-info: info | 600 | install-info: info |