From: Christoffer Aasted Date: Wed, 22 Jul 2026 08:42:59 +0000 (+0000) Subject: patch 9.2.0824: Makefile: Make tags depends on configure X-Git-Tag: v9.2.0824^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2262053f3225ae0f78f6d475155bab9f096ead97;p=thirdparty%2Fvim.git patch 9.2.0824: Makefile: Make tags depends on configure Problem: Makefile: Make tags depends on configure Solution: Separate the make tags into a separate makefile (Christoffer Aasted) closes: #20707 Signed-off-by: Christoffer Aasted Signed-off-by: Christian Brabandt --- diff --git a/Filelist b/Filelist index aedb16a7ff..07853f4c69 100644 --- a/Filelist +++ b/Filelist @@ -34,6 +34,7 @@ SRC_ALL = \ ci/ddebs.list \ ci/pinned-pkgs \ src/Make_all.mak \ + src/Make_tags.mak \ src/README.md \ src/alloc.c \ src/alloc.h \ diff --git a/Makefile b/Makefile index 2552083a51..47c41a2bb4 100644 --- a/Makefile +++ b/Makefile @@ -30,9 +30,12 @@ first: @echo "If there are problems, cd to the src directory and run make there" cd src && $(MAKE) $@ +tags notags: + $(MAKE) -C src/ -f Make_tags.mak $@ + # Some make programs use the last target for the $@ default; put the other # targets separately to always let $@ expand to "first" by default. -all install uninstall tools config configure reconfig proto depend lint tags types test scripttests testtiny test_libvterm unittests testclean clean distclean: +all install uninstall tools config configure reconfig proto depend lint types test scripttests testtiny test_libvterm unittests testclean clean distclean: @if test ! -f src/auto/config.mk; then \ cp src/config.mk.dist src/auto/config.mk; \ fi diff --git a/src/Make_all.mak b/src/Make_all.mak index 6a6d2fe14e..4f1b1255fd 100644 --- a/src/Make_all.mak +++ b/src/Make_all.mak @@ -1,5 +1,5 @@ # -# Common Makefile, defines the list of tests to run and other things. +# Common Makefile - shared platform independent # # Argument for running ctags. diff --git a/src/Make_tags.mak b/src/Make_tags.mak new file mode 100644 index 0000000000..9a17b0955b --- /dev/null +++ b/src/Make_tags.mak @@ -0,0 +1,16 @@ +# +# tags +# + +include Make_all.mak +-include auto/config.mk + +# Override with `make TAGPRG='...' tags` +TAGPRG ?= ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S -f tags + +notags: + -rm -f tags + +# You can ignore error messages for missing files. +tags TAGS: notags + $(TAGPRG) $(TAGS_FILES) diff --git a/src/Makefile b/src/Makefile index e0f7057b83..a3878d0c85 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2201,12 +2201,12 @@ proto/gui_gtk_gresources.pro: auto/gui_gtk_gresources.c fi notags: - -rm -f tags + $(MAKE) -f Make_tags.mak notags -# Note: tags is made for the currently configured version. +# Configure sets portable TAGPRG, else modern ctags is used. # You can ignore error messages for missing files. tags TAGS: notags - $(TAGPRG) $(TAGS_FILES) + $(MAKE) -f Make_tags.mak tags # Build the cscope database. # This may search more files than necessary. diff --git a/src/version.c b/src/version.c index bdf8cac8c4..80eae1f884 100644 --- a/src/version.c +++ b/src/version.c @@ -759,6 +759,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 824, /**/ 823, /**/