aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMr. Goblin <mrgoblin@mrgoblin.net>2026-09-27 02:36:17 +0300
committerMr. Goblin <mrgoblin@mrgoblin.net>2026-09-27 02:36:17 +0300
commit63087638215286ba135ceeb310e330f8b28456fa (patch)
treeb375b70a09329e1531aadd0a678eef96844743e9
parentd86869ca5245925ef09ca173cddc05cfc1e16911 (diff)
make ctags target
-rw-r--r--.gitattributes1
-rw-r--r--.gitignore3
-rw-r--r--Makefile6
3 files changed, 8 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes
index 2f14ddf..de2f316 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,3 +1,2 @@
.gitignore export-ignore
.gitattributes export-ignore
-dist.sh export-ignore
diff --git a/.gitignore b/.gitignore
index 2d5475f..d89391c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,9 @@ btasktdctl
*.o
*.a
+# ctags
+tags
+
.env
.env.local
diff --git a/Makefile b/Makefile
index 6def93e..133e59c 100644
--- a/Makefile
+++ b/Makefile
@@ -24,15 +24,19 @@ MAINBINARIES = btasktd
.SUFFIXES:
.SUFFIXES: .c .o
+.PHONY: all clean dist ctags
all: $(MAINBINARIES)
+ctags:
+ ctags *.c *.h *.cpp *.hpp
+
dist:
git archive --format=tar --prefix=$(DIST_NAME)/ HEAD | \
bzip2 > $(DIST_NAME).tar.bz2
clean:
- rm -f $(MAINBINARIES) *.o *.test
+ rm -f $(MAINBINARIES) *.o *.test tags
.c.o:
$(CC) $(DEBUG) $(CFLAGS) -c $< -o $@