From 4ed889295cd39fa406b7ad202e3c8925cf0dc370 Mon Sep 17 00:00:00 2001 From: Justin Husted Date: Sun, 3 Nov 2019 21:27:57 -0800 Subject: [PATCH] Add makefile support for tags. Also, update .gitignore for various things. Signed-off-by: Justin Husted --- .gitignore | 3 +++ Makefile | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index 57664356..2e06ef53 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/Makefile b/Makefile index 3c3db9bc..eb2798ff 100644 --- a/Makefile +++ b/Makefile @@ -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)