Mercurial > emacs
comparison Makefile.in @ 94598:bc725ee2bc85
(MAKEINFO): New, set by configure.
(install-arch-indep): Without makeinfo, ignore any missing manuals.
(info-real): New target.
(info): Without makeinfo, do nothing, else call `info-real'.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 03 May 2008 20:16:32 +0000 |
parents | c598ce296aea |
children | 1a762a842f80 |
comparison
equal
deleted
inserted
replaced
94597:100982f1144d | 94598:bc725ee2bc85 |
---|---|
82 LDFLAGS=@LDFLAGS@ | 82 LDFLAGS=@LDFLAGS@ |
83 CPPFLAGS=@CPPFLAGS@ | 83 CPPFLAGS=@CPPFLAGS@ |
84 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ | 84 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ |
85 LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@ | 85 LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@ |
86 EXEEXT=@EXEEXT@ | 86 EXEEXT=@EXEEXT@ |
87 MAKEINFO=@MAKEINFO@ | |
87 | 88 |
88 ### These help us choose version- and architecture-specific directories | 89 ### These help us choose version- and architecture-specific directories |
89 ### to install files in. | 90 ### to install files in. |
90 | 91 |
91 ### This should be the number of the Emacs version we're building, | 92 ### This should be the number of the Emacs version we're building, |
551 ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \ | 552 ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \ |
552 chmod a+r $(DESTDIR)${infodir}/dir); \ | 553 chmod a+r $(DESTDIR)${infodir}/dir); \ |
553 fi; \ | 554 fi; \ |
554 cd ${srcdir}/info ; \ | 555 cd ${srcdir}/info ; \ |
555 for elt in $(INFO_FILES); do \ | 556 for elt in $(INFO_FILES); do \ |
557 test "$(MAKEINFO)" = "no" && ! test -e $$elt && continue; \ | |
556 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ | 558 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ |
557 ${INSTALL_DATA} $$f $(DESTDIR)${infodir}/$$f; \ | 559 ${INSTALL_DATA} $$f $(DESTDIR)${infodir}/$$f; \ |
558 chmod a+r $(DESTDIR)${infodir}/$$f; \ | 560 chmod a+r $(DESTDIR)${infodir}/$$f; \ |
559 done; \ | 561 done; \ |
560 done); \ | 562 done); \ |
562 -unset CDPATH; \ | 564 -unset CDPATH; \ |
563 thisdir=`/bin/pwd`; \ | 565 thisdir=`/bin/pwd`; \ |
564 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \ | 566 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \ |
565 then \ | 567 then \ |
566 for elt in $(INFO_FILES); do \ | 568 for elt in $(INFO_FILES); do \ |
569 test "$(MAKEINFO)" = "no" && ! test -e $$elt && continue; \ | |
567 (cd $${thisdir}; \ | 570 (cd $${thisdir}; \ |
568 ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ | 571 ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ |
569 done; \ | 572 done; \ |
570 else true; fi | 573 else true; fi |
571 -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} $(DESTDIR)${datadir}/emacs/site-lisp ${COPYDESTS} $(DESTDIR)${infodir} | 574 -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} $(DESTDIR)${datadir}/emacs/site-lisp ${COPYDESTS} $(DESTDIR)${infodir} |
768 | 771 |
769 dist: | 772 dist: |
770 cd ${srcdir}; ./make-dist | 773 cd ${srcdir}; ./make-dist |
771 | 774 |
772 .PHONY: info dvi dist check html | 775 .PHONY: info dvi dist check html |
776 | |
777 info-real: | |
778 -(cd doc/emacs; $(MAKE) $(MFLAGS) info) | |
779 -(cd doc/misc; $(MAKE) $(MFLAGS) info) | |
780 -(cd doc/lispref; $(MAKE) $(MFLAGS) info) | |
781 -(cd doc/lispintro; $(MAKE) $(MFLAGS) info) | |
782 | |
773 force-info: | 783 force-info: |
774 # Note that man/Makefile knows how to | 784 # Note that man/Makefile knows how to |
775 # put the info files in $(srcdir), | 785 # put the info files in $(srcdir), |
776 # so we can do ok running make in the build dir. | 786 # so we can do ok running make in the build dir. |
777 info: force-info | 787 info: force-info |
778 -(cd doc/emacs; $(MAKE) $(MFLAGS) info) | 788 @if test "$(MAKEINFO)" = "no"; then \ |
779 -(cd doc/misc; $(MAKE) $(MFLAGS) info) | 789 echo "Configured without makeinfo, not building manuals" ; \ |
780 -(cd doc/lispref; $(MAKE) $(MFLAGS) info) | 790 else \ |
781 -(cd doc/lispintro; $(MAKE) $(MFLAGS) info) | 791 $(MAKE) $(MFLAGS) info-real ; \ |
792 fi | |
782 | 793 |
783 # The info/dir file must be updated by hand when new manuals are added. | 794 # The info/dir file must be updated by hand when new manuals are added. |
784 check-info-dir: info | 795 check-info-dir: info |
785 cd info ; \ | 796 cd info ; \ |
786 missing= ; \ | 797 missing= ; \ |