Makefile: Add cscope support

Add cscope support so that running `make cscope` will generate/update
cscope files used for source code browsing, while running `make
distclean` will remove the cscope files.

Also add entry in .gitignore to ignore generated cscope files.

Signed-off-by: Tan En De <ende.tan@linux.starfivetech.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
This commit is contained in:
Tan En De
2022-10-13 09:26:23 +08:00
committed by Anup Patel
parent d682a0afa1
commit 0fee0bf826
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@@ -9,3 +9,4 @@ install/
# Development friendly files
tags
cscope*