Merge pull request #3869 from gilles-peskine-arm/cscope-make-2.16

Backport 2.16: Add makefile target for cscope.out + .gitignore
This commit is contained in:
Ronald Cron 2020-11-20 16:50:16 +01:00 committed by GitHub
commit 3cfee6c71e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -40,4 +40,5 @@ massif-*
/GSYMS
/GTAGS
/TAGS
/cscope*.out
/tags

View File

@ -129,5 +129,10 @@ tags: $(C_SOURCE_FILES)
$(CTAGS) $@ $(C_SOURCE_FILES)
TAGS: $(C_SOURCE_FILES)
etags -o $@ $(C_SOURCE_FILES)
global: GPATH GRTAGS GSYMS GTAGS
GPATH GRTAGS GSYMS GTAGS: $(C_SOURCE_FILES)
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