aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-05-18 14:19:37 -0400
committerGlenn Morris2012-05-18 14:19:37 -0400
commitbfed83348183b8a4468bdad717c66d5fbb444cdb (patch)
tree208645b9669b585fe4af0eeb4ff3892899b15f3a
parent660c8c1e9a08c236700574bd8bd8722c586cd62a (diff)
downloademacs-bfed83348183b8a4468bdad717c66d5fbb444cdb.tar.gz
emacs-bfed83348183b8a4468bdad717c66d5fbb444cdb.zip
Fix up dependencies in previous change.
install-arch-indep deletes the entire destination etc/ directory, so install-doc needs that to be run first.
-rw-r--r--Makefile.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index c3d6ea01193..887a591110a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -443,7 +443,7 @@ $(srcdir)/src/stamp-h.in: $(AUTOCONF_INPUTS)
443 443
444.PHONY: install 444.PHONY: install
445 445
446install: all install-arch-indep install-arch-dep blessmail 446install: all install-arch-indep install-doc install-arch-dep blessmail
447 @true 447 @true
448 448
449## Ensure that $subdir contains a subdirs.el file. 449## Ensure that $subdir contains a subdirs.el file.
@@ -464,7 +464,7 @@ write_subdir=if [ -f $${subdir}/subdirs.el ]; \
464### Install the executables that were compiled specifically for this machine. 464### Install the executables that were compiled specifically for this machine.
465### We do install-arch-indep first because the executable needs the 465### We do install-arch-indep first because the executable needs the
466### Lisp files and DOC file to work properly. 466### Lisp files and DOC file to work properly.
467install-arch-dep: install-arch-indep 467install-arch-dep: install-arch-indep install-doc
468 umask 022; ${MKDIR_P} $(DESTDIR)${bindir} 468 umask 022; ${MKDIR_P} $(DESTDIR)${bindir}
469 (cd lib-src; \ 469 (cd lib-src; \
470 $(MAKE) install $(MFLAGS) prefix=${prefix} \ 470 $(MAKE) install $(MFLAGS) prefix=${prefix} \
@@ -523,7 +523,7 @@ set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \
523## Is it really Emacs's job to create those directories? 523## Is it really Emacs's job to create those directories?
524## Should we also be ensuring they contain subdirs.el files? 524## Should we also be ensuring they contain subdirs.el files?
525## It would be easy to do, just use write_subdir. 525## It would be easy to do, just use write_subdir.
526install-arch-indep: install-leim install-doc install-info install-man ${INSTALL_ARCH_INDEP_EXTRA} 526install-arch-indep: install-leim install-info install-man ${INSTALL_ARCH_INDEP_EXTRA}
527 umask 022 ; \ 527 umask 022 ; \
528 $(MKDIR_P) $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` 528 $(MKDIR_P) $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'`
529 -set ${COPYDESTS} ; \ 529 -set ${COPYDESTS} ; \
@@ -582,7 +582,10 @@ install-arch-indep: install-leim install-doc install-info install-man ${INSTALL_
582## has another effect. We copy the entire etc/ directory from the 582## has another effect. We copy the entire etc/ directory from the
583## source tree first. For an in-tree build, this will include 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. 584## any DOC* files there may be. So rm DOC does have an effect.
585install-doc: 585
586## Note that install-arch-indep deletes and recreates the entire
587## installed etc/ directory, so we need it to run before this does.
588install-doc: install-arch-indep
586 -unset CDPATH; \ 589 -unset CDPATH; \
587 umask 022; ${MKDIR_P} $(DESTDIR)${docdir} ; \ 590 umask 022; ${MKDIR_P} $(DESTDIR)${docdir} ; \
588 if [ `(cd ./etc; /bin/pwd)` != `(cd $(DESTDIR)${docdir}; /bin/pwd)` ]; \ 591 if [ `(cd ./etc; /bin/pwd)` != `(cd $(DESTDIR)${docdir}; /bin/pwd)` ]; \