aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-05-02 00:45:16 -0700
committerGlenn Morris2012-05-02 00:45:16 -0700
commit9aa071dfb9739328b39b9cbb4130b39b5ed30c85 (patch)
tree423c5ada2ab9d61637f0718ca1c6530f9e24d8a7
parent226b674362163c251ffc43954e8f7b80822de57d (diff)
downloademacs-9aa071dfb9739328b39b9cbb4130b39b5ed30c85.tar.gz
emacs-9aa071dfb9739328b39b9cbb4130b39b5ed30c85.zip
Don't hard-code the list of info files in the top-level Makefile
The sed '/ing directory/d' piece is to remove the annoying "entering/leaving directory" messages that GNU make insists on printing when called recursively. --no-print-directory isn't portable. * Makefile.in (INFO_FILES): Remove variable. (INFO_NONMISC): New variable. (install-arch-indep, uninstall): Don't use $INFO_FILES. * doc/misc/Makefile.in (echo-info): New phony target, used by top-level.
-rw-r--r--ChangeLog4
-rw-r--r--Makefile.in21
-rw-r--r--doc/misc/ChangeLog2
-rw-r--r--doc/misc/Makefile.in7
4 files changed, 19 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index 5836ea1276b..bf4d53edf4b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
12012-05-02 Glenn Morris <rgm@gnu.org> 12012-05-02 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (INFO_FILES): Remove variable.
4 (INFO_NONMISC): New variable.
5 (install-arch-indep, uninstall): Don't use $INFO_FILES.
6
3 * Makefile.in (uninstall): Remove useless-use-of-for; that for 7 * Makefile.in (uninstall): Remove useless-use-of-for; that for
4 some reason caused problems on an old Solaris. 8 some reason caused problems on an old Solaris.
5 9
diff --git a/Makefile.in b/Makefile.in
index 4b225fffd58..ef1f3c90c6f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -126,17 +126,10 @@ libexecdir=@libexecdir@
126mandir=@mandir@ 126mandir=@mandir@
127man1dir=$(mandir)/man1 127man1dir=$(mandir)/man1
128 128
129# Where to install and expect the info files describing Emacs. In the 129# Where to install and expect the info files describing Emacs.
130# past, this defaulted to a subdirectory of ${prefix}/lib/emacs, but
131# since there are now many packages documented with the texinfo
132# system, it is inappropriate to imply that it is part of Emacs.
133infodir=@infodir@ 130infodir=@infodir@
134INFO_FILES=ada-mode auth autotype calc ccmode cl dbus dired-x ebrowse \ 131# Info files not in the doc/misc directory (we get those via make echo-info).
135 ede ediff edt eieio efaq eintr elisp emacs emacs-gnutls \ 132INFO_NONMISC=emacs eintr elisp
136 emacs-mime epa erc ert eshell eudc flymake forms gnus \
137 idlwave info mairix-el message mh-e newsticker nxml-mode \
138 org pcl-cvs pgg rcirc reftex remember sasl sc semantic ses \
139 sieve smtpmail speedbar tramp url vip viper widget woman
140 133
141# If no makeinfo was found and configured --without-makeinfo, "no"; else "yes". 134# If no makeinfo was found and configured --without-makeinfo, "no"; else "yes".
142HAVE_MAKEINFO=@HAVE_MAKEINFO@ 135HAVE_MAKEINFO=@HAVE_MAKEINFO@
@@ -617,8 +610,9 @@ install-arch-indep: mkdir info install-etc
617 ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \ 610 ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \
618 chmod a+r $(DESTDIR)${infodir}/dir); \ 611 chmod a+r $(DESTDIR)${infodir}/dir); \
619 fi; \ 612 fi; \
613 info_misc=`cd $${thisdir}/doc/misc; ${MAKE} echo-info | sed '/ing directory/d'`; \
620 cd ${srcdir}/info ; \ 614 cd ${srcdir}/info ; \
621 for elt in $(INFO_FILES); do \ 615 for elt in ${INFO_NONMISC} $${info_misc}; do \
622 test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \ 616 test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \
623 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ 617 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \
624 (cd $${thisdir}; \ 618 (cd $${thisdir}; \
@@ -718,8 +712,9 @@ uninstall:
718 done 712 done
719 -rm -rf $(DESTDIR)${libexecdir}/emacs/${version} 713 -rm -rf $(DESTDIR)${libexecdir}/emacs/${version}
720 thisdir=`/bin/pwd`; \ 714 thisdir=`/bin/pwd`; \
721 (cd $(DESTDIR)${infodir} && \ 715 (info_misc=`cd doc/misc; ${MAKE} echo-info | sed '/ing directory/d'`; \
722 for elt in $(INFO_FILES); do \ 716 cd $(DESTDIR)${infodir} && \
717 for elt in ${INFO_NONMISC} $${info_misc}; do \
723 (cd $${thisdir}; \ 718 (cd $${thisdir}; \
724 $(INSTALL_INFO) --remove --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ 719 $(INSTALL_INFO) --remove --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \
725 if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \ 720 if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index e8ebe45e8ba..0d6300a1b82 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,5 +1,7 @@
12012-05-02 Glenn Morris <rgm@gnu.org> 12012-05-02 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (echo-info): New phony target, used by top-level.
4
3 * viper.texi: Make direntry shorter (also it is no longer "newest"). 5 * viper.texi: Make direntry shorter (also it is no longer "newest").
4 6
5 * emacs-gnutls.texi, ert.texi, org.texi: 7 * emacs-gnutls.texi, ert.texi, org.texi:
diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in
index 390b077bbb0..383ec3a9db9 100644
--- a/doc/misc/Makefile.in
+++ b/doc/misc/Makefile.in
@@ -43,7 +43,6 @@ emacsdir = $(srcdir)/../emacs
43MAKEINFO = @MAKEINFO@ 43MAKEINFO = @MAKEINFO@
44MAKEINFO_OPTS = --force -I$(emacsdir) 44MAKEINFO_OPTS = --force -I$(emacsdir)
45 45
46# Also add new entries to INFO_FILES in the top-level Makefile.in.
47INFO_TARGETS = \ 46INFO_TARGETS = \
48 $(infodir)/ada-mode \ 47 $(infodir)/ada-mode \
49 $(infodir)/auth \ 48 $(infodir)/auth \
@@ -210,7 +209,11 @@ ENVADD = TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \
210 209
211mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir} 210mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
212 211
213.PHONY: info dvi pdf 212.PHONY: info dvi pdf echo-info
213
214## Used by top-level Makefile.
215echo-info:
216 @echo $(INFO_TARGETS) | sed 's|[^ ]*/||g'
214 217
215info: $(INFO_TARGETS) 218info: $(INFO_TARGETS)
216 219