aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-08-15 22:12:58 +0300
committerEli Zaretskii2022-08-15 22:12:58 +0300
commit82635f40ed4274a0bc372351902ff1cdef6dff23 (patch)
treeb057a5f0bf5aa767ccf6fc1ce4ddd7e2f84df922 /src
parent9ea40b3ddfba1104d02ff61e3d20482287d3caca (diff)
downloademacs-82635f40ed4274a0bc372351902ff1cdef6dff23.tar.gz
emacs-82635f40ed4274a0bc372351902ff1cdef6dff23.zip
Produce TAGS in 'lib' as well and include them in src/TAGS
* src/Makefile.in (TAGS): Include ../lib/TAGS. ($(lib)/TAGS): New target. (tags): Depend on $(lib)/TAGS.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index a7024bda461..1f941874ea8 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -790,11 +790,12 @@ ctagsfiles3 = $(wildcard ${srcdir}/*.cc)
790## In out-of-tree builds, TAGS are generated in the build dir, like 790## In out-of-tree builds, TAGS are generated in the build dir, like
791## other non-bootstrap build products (see Bug#31744). 791## other non-bootstrap build products (see Bug#31744).
792 792
793## This does not need to depend on ../lisp and ../lwlib TAGS files, 793## This does not need to depend on ../lisp, ../lwlib and ../lib TAGS files,
794## because etags "--include" only includes a pointer to the file, 794## because etags "--include" only includes a pointer to the file,
795## rather than the file contents. 795## rather than the file contents.
796TAGS: ${ETAGS} $(ctagsfiles1) $(ctagsfiles2) 796TAGS: ${ETAGS} $(ctagsfiles1) $(ctagsfiles2)
797 $(AM_V_GEN)${ETAGS} --include=../lisp/TAGS --include=$(lwlibdir)/TAGS \ 797 $(AM_V_GEN)${ETAGS} --include=../lisp/TAGS --include=$(lwlibdir)/TAGS \
798 --include=$(lib)/TAGS \
798 --regex='{c}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/\1/' \ 799 --regex='{c}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/\1/' \
799 --regex='{c}/[ ]*DEFVAR_[A-Z_ (]+"[^"]+",[ ]\([A-Za-z0-9_]+\)/\1/' \ 800 --regex='{c}/[ ]*DEFVAR_[A-Z_ (]+"[^"]+",[ ]\([A-Za-z0-9_]+\)/\1/' \
800 $(ctagsfiles1) \ 801 $(ctagsfiles1) \
@@ -803,12 +804,12 @@ TAGS: ${ETAGS} $(ctagsfiles1) $(ctagsfiles2)
803 $(ctagsfiles2) \ 804 $(ctagsfiles2) \
804 $(ctagsfiles3) 805 $(ctagsfiles3)
805 806
806## Arrange to make tags tables for ../lisp and ../lwlib, 807## Arrange to make tags tables for ../lisp, ../lwlib and ../lib,
807## which the above TAGS file for the C files includes by reference. 808## which the above TAGS file for the C files includes by reference.
808../lisp/TAGS $(lwlibdir)/TAGS: FORCE 809../lisp/TAGS $(lwlibdir)/TAGS $(lib)/TAGS: FORCE
809 $(MAKE) -C $(dir $@) $(notdir $@) ETAGS="$(ETAGS)" 810 $(MAKE) -C $(dir $@) $(notdir $@) ETAGS="$(ETAGS)"
810 811
811tags: TAGS ../lisp/TAGS $(lwlibdir)/TAGS 812tags: TAGS ../lisp/TAGS $(lwlibdir)/TAGS $(lib)/TAGS
812.PHONY: tags 813.PHONY: tags
813 814
814 815