aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-05-18 19:15:11 -0400
committerGlenn Morris2012-05-18 19:15:11 -0400
commit6d1a623ec4125ba74f482c4610abe696abd97c5e (patch)
tree5733c57a27f4b813427eb3d59e082d8c69841378
parent77f3b62ecae6cc1c2d2bfb26dbc4040346cbeab7 (diff)
downloademacs-6d1a623ec4125ba74f482c4610abe696abd97c5e.tar.gz
emacs-6d1a623ec4125ba74f482c4610abe696abd97c5e.zip
Further small Makefile install simplifications
* Makefile.in (install-arch-indep, install-info, install-man): Simplify some one-sided ifs.
-rw-r--r--ChangeLog3
-rw-r--r--Makefile.in41
2 files changed, 20 insertions, 24 deletions
diff --git a/ChangeLog b/ChangeLog
index fc5861320f3..3d4e8512af0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
12012-05-18 Glenn Morris <rgm@gnu.org> 12012-05-18 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (install-arch-indep, install-info, install-man):
4 Simplify some one-sided ifs.
5
3 * Makefile.in: Install only the relevant DOC file. 6 * Makefile.in: Install only the relevant DOC file.
4 (install-arch-indep): Delete etc/DOC*. 7 (install-arch-indep): Delete etc/DOC*.
5 (install-doc): No more need to delete etc/DOC. 8 (install-doc): No more need to delete etc/DOC.
diff --git a/Makefile.in b/Makefile.in
index 4a21a798350..6af348d1269 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -563,14 +563,13 @@ install-arch-indep: install-leim install-info install-man ${INSTALL_ARCH_INDEP_E
563 ${write_subdir} 563 ${write_subdir}
564 subdir=$(DESTDIR)${datadir}/emacs/site-lisp ; \ 564 subdir=$(DESTDIR)${datadir}/emacs/site-lisp ; \
565 ${write_subdir} || true 565 ${write_subdir} || true
566 -unset CDPATH; \ 566 [ -z "${GZIP_PROG}" ] || \
567 if [ -n "${GZIP_PROG}" ]; \ 567 ( echo "Compressing *.el ..." ; \
568 then \ 568 unset CDPATH; \
569 echo "Compressing *.el ..." ; \ 569 cd $(DESTDIR)${lispdir}; \
570 (cd $(DESTDIR)${lispdir}; for f in `find . -name "*.elc" -print`; do \ 570 for f in `find . -name "*.elc" -print`; do \
571 ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ 571 ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \
572 done) \ 572 done )
573 else true; fi
574 -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS} 573 -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS}
575 574
576## We install only the relevant DOC file if possible 575## We install only the relevant DOC file if possible
@@ -601,14 +600,11 @@ install-info: info
601 umask 022; ${MKDIR_P} $(DESTDIR)${infodir} 600 umask 022; ${MKDIR_P} $(DESTDIR)${infodir}
602 -unset CDPATH; \ 601 -unset CDPATH; \
603 thisdir=`/bin/pwd`; \ 602 thisdir=`/bin/pwd`; \
604 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \ 603 [ `(cd ${srcdir}/info && /bin/pwd)` = `(cd $(DESTDIR)${infodir} && /bin/pwd)` ] || \
605 then \
606 (cd $(DESTDIR)${infodir}; \ 604 (cd $(DESTDIR)${infodir}; \
607 if [ -f dir ]; then true; \ 605 [ -f dir ] || \
608 else \
609 (cd $${thisdir}; \ 606 (cd $${thisdir}; \
610 ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir) ; \ 607 ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir) ; \
611 fi; \
612 info_misc=`cd $${thisdir}/doc/misc; ${MAKE} echo-info | sed '/ing directory/d'`; \ 608 info_misc=`cd $${thisdir}/doc/misc; ${MAKE} echo-info | sed '/ing directory/d'`; \
613 cd ${srcdir}/info ; \ 609 cd ${srcdir}/info ; \
614 for elt in ${INFO_NONMISC} $${info_misc}; do \ 610 for elt in ${INFO_NONMISC} $${info_misc}; do \
@@ -616,15 +612,13 @@ install-info: info
616 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ 612 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \
617 (cd $${thisdir}; \ 613 (cd $${thisdir}; \
618 ${INSTALL_DATA} ${srcdir}/info/$$f $(DESTDIR)${infodir}/$$f); \ 614 ${INSTALL_DATA} ${srcdir}/info/$$f $(DESTDIR)${infodir}/$$f); \
619 if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \ 615 ( [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ] ) || continue ; \
620 rm -f $(DESTDIR)${infodir}/$$f.gz; \ 616 rm -f $(DESTDIR)${infodir}/$$f.gz; \
621 ${GZIP_PROG} -9n $(DESTDIR)${infodir}/$$f; \ 617 ${GZIP_PROG} -9n $(DESTDIR)${infodir}/$$f; \
622 else true; fi; \
623 done; \ 618 done; \
624 (cd $${thisdir}; \ 619 (cd $${thisdir}; \
625 ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ 620 ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \
626 done); \ 621 done)
627 else true; fi
628 622
629install-man: 623install-man:
630 umask 022; ${MKDIR_P} $(DESTDIR)${man1dir} 624 umask 022; ${MKDIR_P} $(DESTDIR)${man1dir}
@@ -632,11 +626,10 @@ install-man:
632 cd ${mansrcdir}; \ 626 cd ${mansrcdir}; \
633 for page in *.1; do \ 627 for page in *.1; do \
634 (cd $${thisdir}; \ 628 (cd $${thisdir}; \
635 ${INSTALL_DATA} ${mansrcdir}/$${page} $(DESTDIR)${man1dir}/$${page}; \ 629 ${INSTALL_DATA} ${mansrcdir}/$${page} $(DESTDIR)${man1dir}/$${page}); \
636 if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \ 630 ( [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ] ) || continue ; \
637 rm -f $(DESTDIR)${man1dir}/$${page}.gz; \ 631 rm -f $(DESTDIR)${man1dir}/$${page}.gz; \
638 ${GZIP_PROG} -9n $(DESTDIR)${man1dir}/$${page}; \ 632 ${GZIP_PROG} -9n $(DESTDIR)${man1dir}/$${page}; \
639 else true; fi ); \
640 done 633 done
641 634
642## Install those items from etc/ that need to end up elsewhere. 635## Install those items from etc/ that need to end up elsewhere.