diff src/Make_cyg_ming.mak @ 12305:d4a3ad146204 v8.0.1032

patch 8.0.1032: "make tags" doesn't work well on MS-Windows commit https://github.com/vim/vim/commit/9ac9dfa9e2b20659e5806982f027fa4fd637c3c7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 1 18:41:26 2017 +0200 patch 8.0.1032: "make tags" doesn't work well on MS-Windows Problem: "make tags" doesn't work well on MS-Windows. Solution: Add or fix tags target. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 01 Sep 2017 18:45:05 +0200
parents cd366d80d53e
children 7e6cb73e5ce0
line wrap: on
line diff
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -76,6 +76,10 @@ endif
 # Set to yes to enable terminal support.
 TERMINAL=no
 
+ifndef CTAGS
+# this assumes ctags is Exuberant ctags
+CTAGS = ctags -I INIT+ --fields=+S
+endif
 
 # Link against the shared version of libstdc++ by default.  Set
 # STATIC_STDCPLUS to "yes" to link against static version instead.
@@ -885,6 +889,12 @@ xxd/xxd.exe: xxd/xxd.c
 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
 	$(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) CXX='$(CXX)' STATIC_STDCPLUS=$(STATIC_STDCPLUS)
 
+tags: notags
+	$(CTAGS) *.c *.cpp *.h if_perl.xs
+
+notags:
+	-$(DEL) tags
+
 clean:
 	-$(DEL) $(OUTDIR)$(DIRSLASH)*.o
 	-$(DEL) $(OUTDIR)$(DIRSLASH)*.res