Merge pull request #3870 from gilles-peskine-arm/cscope-make-2.7

Backport 2.7: Add makefile target for cscope.out + .gitignore
This commit is contained in:
Ronald Cron 2020-11-20 16:50:31 +01:00 committed by GitHub
commit 06e838b44d
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

@ -117,5 +117,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