diff options
author | Justin Husted <sigstop@gmail.com> | 2019-11-03 21:27:57 -0800 |
---|---|---|
committer | Justin Husted <sigstop@gmail.com> | 2019-11-04 21:23:46 -0800 |
commit | 4ed889295cd39fa406b7ad202e3c8925cf0dc370 (patch) | |
tree | 609e8bff2ffcb9b01eb22c37dcd568bd763b56b9 | |
parent | 6016d33b801a5fe13e86e5be3abf68ed166c0796 (diff) |
Add makefile support for tags.
Also, update .gitignore for various things.
Signed-off-by: Justin Husted <sigstop@gmail.com>
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 7 |
2 files changed, 10 insertions, 0 deletions
@@ -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 @@ -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) |