Skip to content

Commit b660d19

Browse files
committed
add cscope Make rule
1 parent 16abd99 commit b660d19

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,6 +2154,15 @@ notags:
21542154
tags TAGS: notags
21552155
$(TAGPRG) $(TAGS_FILES)
21562156

2157+
# Build the cscope database.
2158+
# This may search more files than necessary.
2159+
.PHONY: cscope csclean
2160+
csclean:
2161+
-rm -vf cscope.out
2162+
cscope.out:
2163+
cscope -bv ./*.[ch] ./*.cpp ./if_perl.xs auto/*.h auto/pathdef.c proto/*.pro
2164+
cscope: csclean cscope.out ;
2165+
21572166
# Make a highlight file for types. Requires Exuberant ctags and awk
21582167
types: types.vim
21592168
types.vim: $(TAGS_FILES)

0 commit comments

Comments
 (0)