Merge pull request #3868 from gilles-peskine-arm/cscope-make-development
Add makefile target for cscope.out
This commit is contained in:
commit
cb0a9ee33e
1 changed files with 15 additions and 1 deletions
16
Makefile
16
Makefile
|
@ -126,12 +126,26 @@ apidoc_clean:
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## Editor navigation files
|
## Editor navigation files
|
||||||
C_SOURCE_FILES = $(wildcard include/*/*.h library/*.[hc] programs/*/*.[hc] tests/suites/*.function)
|
C_SOURCE_FILES = $(wildcard \
|
||||||
|
3rdparty/*/include/*/*.h 3rdparty/*/include/*/*/*.h 3rdparty/*/include/*/*/*/*.h \
|
||||||
|
3rdparty/*/*.c 3rdparty/*/*/*.c 3rdparty/*/*/*/*.c 3rdparty/*/*/*/*/*.c \
|
||||||
|
include/*/*.h \
|
||||||
|
library/*.[hc] \
|
||||||
|
programs/*/*.[hc] \
|
||||||
|
tests/include/*/*.h tests/include/*/*/*.h \
|
||||||
|
tests/src/*.c tests/src/*/*.c \
|
||||||
|
tests/suites/*.function \
|
||||||
|
)
|
||||||
# Exuberant-ctags invocation. Other ctags implementations may require different options.
|
# Exuberant-ctags invocation. Other ctags implementations may require different options.
|
||||||
CTAGS = ctags --langmap=c:+.h.function -o
|
CTAGS = ctags --langmap=c:+.h.function -o
|
||||||
tags: $(C_SOURCE_FILES)
|
tags: $(C_SOURCE_FILES)
|
||||||
$(CTAGS) $@ $(C_SOURCE_FILES)
|
$(CTAGS) $@ $(C_SOURCE_FILES)
|
||||||
TAGS: $(C_SOURCE_FILES)
|
TAGS: $(C_SOURCE_FILES)
|
||||||
etags -o $@ $(C_SOURCE_FILES)
|
etags -o $@ $(C_SOURCE_FILES)
|
||||||
|
global: GPATH GRTAGS GSYMS GTAGS
|
||||||
GPATH GRTAGS GSYMS GTAGS: $(C_SOURCE_FILES)
|
GPATH GRTAGS GSYMS GTAGS: $(C_SOURCE_FILES)
|
||||||
ls $(C_SOURCE_FILES) | gtags -f - --gtagsconf .globalrc
|
ls $(C_SOURCE_FILES) | gtags -f - --gtagsconf .globalrc
|
||||||
|
cscope: cscope.in.out cscope.po.out cscope.out
|
||||||
|
cscope.in.out cscope.po.out cscope.out: $(C_SOURCE_FILES)
|
||||||
|
cscope -bq -u -Iinclude -Ilibrary $(patsubst %,-I%,$(wildcard 3rdparty/*/include)) -Itests/include $(C_SOURCE_FILES)
|
||||||
|
.PHONY: cscope global
|
||||||
|
|
Loading…
Reference in a new issue