From 62610da8c44ae864d21a1f1e12bd4444e688eaf6 Mon Sep 17 00:00:00 2001 From: Petteri Hintsanen Date: Mon, 8 Mar 2021 00:25:53 +0200 Subject: [PATCH] Make tags tables from Texinfo sources * doc/misc/Makefile.in (ETAGS, texifiles): New variables. (TAGS, tags, FORCE, ${ETAGS}): New targets. (bootstrap-clean maintainer-clean): Delete TAGS. * doc/lispref/Makefile.in (ETAGS, texifiles): New variables. (TAGS, tags, FORCE, ${ETAGS}): New targets. (bootstrap-clean maintainer-clean): Delete TAGS. * doc/lispintro/Makefile.in (ETAGS, texifiles): New variables. (TAGS, tags, FORCE, ${ETAGS}): New targets. (bootstrap-clean maintainer-clean): Delete TAGS. * doc/emacs/Makefile.in (ETAGS, texifiles): New variables. (TAGS, tags, FORCE, ${ETAGS}): New targets. (bootstrap-clean maintainer-clean): Delete TAGS. * Makefile.in (TAGS tags): Make tags in doc/emacs, doc/lispintro, doc/lispref and doc/misc. --- Makefile.in | 4 ++++ doc/emacs/Makefile.in | 18 +++++++++++++++++- doc/lispintro/Makefile.in | 16 ++++++++++++++++ doc/lispref/Makefile.in | 16 ++++++++++++++++ doc/misc/Makefile.in | 17 +++++++++++++++++ 5 files changed, 70 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 6acf9791ab9..4fa7c9ed5f1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -941,6 +941,10 @@ extraclean: $(extraclean_dirs:=_extraclean) # I removed it because it causes `make tags` to build Emacs. TAGS tags: lib lib-src # src $(MAKE) -C src tags + $(MAKE) -C doc/emacs tags + $(MAKE) -C doc/lispintro tags + $(MAKE) -C doc/lispref tags + $(MAKE) -C doc/misc tags CHECK_TARGETS = check check-maybe check-expensive check-all .PHONY: $(CHECK_TARGETS) diff --git a/doc/emacs/Makefile.in b/doc/emacs/Makefile.in index 4585b2e0ddc..69d39efa8b9 100644 --- a/doc/emacs/Makefile.in +++ b/doc/emacs/Makefile.in @@ -220,7 +220,7 @@ infoclean: $(buildinfodir)/emacs.info-[1-9][0-9] bootstrap-clean maintainer-clean: distclean infoclean - rm -f ${srcdir}/emacsver.texi + rm -f ${srcdir}/emacsver.texi TAGS .PHONY: install-dvi install-html install-pdf install-ps install-doc @@ -269,4 +269,20 @@ uninstall-pdf: uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps +ETAGS = ../../lib-src/etags${EXEEXT} + +${ETAGS}: FORCE + $(MAKE) -C $(dir $@) $(notdir $@) + +texifiles = $(wildcard ${srcdir}/*.texi) + +TAGS: ${ETAGS} $(texifiles) + $(AM_V_GEN)${ETAGS} --include=../lispref/TAGS --include=../misc/TAGS $(texifiles) + +tags: TAGS +.PHONY: tags + +FORCE: +.PHONY: FORCE + ### Makefile ends here diff --git a/doc/lispintro/Makefile.in b/doc/lispintro/Makefile.in index 45b4fe7e3b7..294b310d673 100644 --- a/doc/lispintro/Makefile.in +++ b/doc/lispintro/Makefile.in @@ -119,6 +119,7 @@ infoclean: $(buildinfodir)/eintr.info-[1-9] bootstrap-clean maintainer-clean: distclean infoclean + rm -f TAGS .PHONY: install-dvi install-html install-pdf install-ps install-doc @@ -166,5 +167,20 @@ uninstall-pdf: uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps +ETAGS = ../../lib-src/etags${EXEEXT} + +${ETAGS}: FORCE + $(MAKE) -C $(dir $@) $(notdir $@) + +texifiles = $(wildcard ${srcdir}/*.texi) + +TAGS: ${ETAGS} $(texifiles) + $(AM_V_GEN)${ETAGS} $(texifiles) + +tags: TAGS +.PHONY: tags + +FORCE: +.PHONY: FORCE ### Makefile ends here diff --git a/doc/lispref/Makefile.in b/doc/lispref/Makefile.in index 876303593ce..a7701c5f98e 100644 --- a/doc/lispref/Makefile.in +++ b/doc/lispref/Makefile.in @@ -180,6 +180,7 @@ infoclean: $(buildinfodir)/elisp.info-[1-9][0-9] bootstrap-clean maintainer-clean: distclean infoclean + rm -f TAGS .PHONY: install-dvi install-html install-pdf install-ps install-doc @@ -227,5 +228,20 @@ uninstall-pdf: uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps +ETAGS = ../../lib-src/etags${EXEEXT} + +${ETAGS}: FORCE + $(MAKE) -C $(dir $@) $(notdir $@) + +texifiles = $(wildcard ${srcdir}/*.texi) + +TAGS: ${ETAGS} $(texifiles) + $(AM_V_GEN)${ETAGS} $(texifiles) + +tags: TAGS +.PHONY: tags + +FORCE: +.PHONY: FORCE ### Makefile ends here diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in index 5130650fefe..63d4bf0337f 100644 --- a/doc/misc/Makefile.in +++ b/doc/misc/Makefile.in @@ -287,6 +287,7 @@ orgclean: rm -f ${TEXI_FROM_ORG} bootstrap-clean maintainer-clean: distclean infoclean orgclean + rm -f TAGS .PHONY: install-dvi install-html install-pdf install-ps install-doc @@ -336,4 +337,20 @@ uninstall-pdf: uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps +ETAGS = ../../lib-src/etags${EXEEXT} + +${ETAGS}: FORCE + $(MAKE) -C $(dir $@) $(notdir $@) + +texifiles = $(wildcard ${srcdir}/*.texi) + +TAGS: ${ETAGS} $(texifiles) + $(AM_V_GEN)${ETAGS} $(texifiles) + +tags: TAGS +.PHONY: tags + +FORCE: +.PHONY: FORCE + ### Makefile ends here -- 2.39.2