Skip to content

Commit

Permalink
Generate tags for Vi, for Emacs and with Global
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-peskine-arm committed Feb 25, 2019
1 parent 9c99dc8 commit 66c1e2c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Expand Up @@ -26,3 +26,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 changes: 3 additions & 0 deletions .globalrc
@@ -0,0 +1,3 @@
default:\
:langmap=c\:.c.h.function:\

9 changes: 9 additions & 0 deletions Makefile
Expand Up @@ -132,3 +132,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

0 comments on commit 66c1e2c

Please sign in to comment.