Generate tags for Vi, for Emacs and with Global

This commit is contained in:
Gilles Peskine
2019-03-04 18:23:06 +01:00
parent fb85576f05
commit 4b0c4c9c0d
3 changed files with 20 additions and 0 deletions
+8
View File
@@ -23,3 +23,11 @@ massif-*
# CMake generates *.dir/ folders for in-tree builds (used by MSVC projects), ignore all of those:
*.dir/
# Editor navigation files:
/GPATH
/GRTAGS
/GSYMS
/GTAGS
/TAGS
/tags
+3
View File
@@ -0,0 +1,3 @@
default:\
:langmap=c\:.c.h.function:\
+9
View File
@@ -108,3 +108,12 @@ apidoc:
apidoc_clean:
rm -rf apidoc
endif
## Editor navigation files
C_SOURCE_FILES = $(wildcard include/*/*.h library/*.[hc] programs/*/*.[hc] tests/suites/*.function)
tags: $(C_SOURCE_FILES)
ctags -o $@ $(C_SOURCE_FILES)
TAGS: $(C_SOURCE_FILES)
etags -o $@ $(C_SOURCE_FILES)
GPATH GRTAGS GSYMS GTAGS: $(C_SOURCE_FILES)
ls $(C_SOURCE_FILES) | gtags -f - --gtagsconf .globalrc