Add makefile support for tags.

Also, update .gitignore for various things.

Signed-off-by: Justin Husted <sigstop@gmail.com>
This commit is contained in:
Justin Husted 2019-11-03 21:27:57 -08:00
parent 6016d33b80
commit 4ed889295c
2 changed files with 10 additions and 0 deletions

3
.gitignore vendored
View File

@ -5,8 +5,11 @@ bcachefs
*.d
*.a
tags
TAGS
cscope*
bcachefs-tools
tests/test_helper
tests/__pycache__/
# dot-files that we don't want to ignore
!.gitignore

View File

@ -70,6 +70,13 @@ all: bcachefs
check: tests/test_helper bcachefs
cd tests; $(PYTEST)
.PHONY: TAGS tags
TAGS:
ctags -e -R .
tags:
ctags -R .
SRCS=$(shell find . -type f -iname '*.c')
DEPS=$(SRCS:.c=.d)
-include $(DEPS)