commit deb1f490ba502a6a56a59cace8f57c2d0c445412
parent 94a883640ac427d72fb2fcbef4db4cdf4d6ce6ac
Author: deurzen <max@deurzen.net>
Date: Sun, 5 Jun 2022 09:48:52 +0200
adds ctags generation target
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,6 +1,6 @@
all: kranewl
-kranewl:
+kranewl: tags
cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build
make -C build
@@ -14,8 +14,11 @@ install:
test: kranewl
ctest --verbose --test-dir build
-.PHONY: clean
+.PHONY: clean tags
clean:
@rm -rf ./tags
@rm -rf ./build
@rm -f ./include/protocols/*
+
+tags:
+ @git ls-files | ctags -R --exclude=.git --c++-kinds=+p --links=no --fields=+iaS --extras=+q -L-