Skip to content

Commit 66c1e2c

Browse files
Generate tags for Vi, for Emacs and with Global
1 parent 9c99dc8 commit 66c1e2c

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ massif-*
2626

2727
# CMake generates *.dir/ folders for in-tree builds (used by MSVC projects), ignore all of those:
2828
*.dir/
29+
30+
# Editor navigation files:
31+
/GPATH
32+
/GRTAGS
33+
/GSYMS
34+
/GTAGS
35+
/TAGS
36+
/tags

.globalrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
default:\
2+
:langmap=c\:.c.h.function:\
3+

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,12 @@ apidoc:
132132
apidoc_clean:
133133
rm -rf apidoc
134134
endif
135+
136+
## Editor navigation files
137+
C_SOURCE_FILES = $(wildcard include/*/*.h library/*.[hc] programs/*/*.[hc] tests/suites/*.function)
138+
tags: $(C_SOURCE_FILES)
139+
ctags -o $@ $(C_SOURCE_FILES)
140+
TAGS: $(C_SOURCE_FILES)
141+
etags -o $@ $(C_SOURCE_FILES)
142+
GPATH GRTAGS GSYMS GTAGS: $(C_SOURCE_FILES)
143+
ls $(C_SOURCE_FILES) | gtags -f - --gtagsconf .globalrc

0 commit comments

Comments
 (0)