about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-15 09:56:32 -0400
committerJune McEnroe <june@causal.agency>2020-08-15 09:56:32 -0400
commit3e2568aeb07f1df1b0e70a98130570cd229c10e3 (patch)
tree9f5c47ba88397f9c34e7a83067717ebdb67d1975
parentJust use CLOCK_MONOTONIC and clean up includes (diff)
downloadcatsit-3e2568aeb07f1df1b0e70a98130570cd229c10e3.tar.gz
catsit-3e2568aeb07f1df1b0e70a98130570cd229c10e3.zip
Generate tags file
-rw-r--r--.gitignore1
-rw-r--r--Makefile7
2 files changed, 7 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 821db5b..ffd4582 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 config.mk
 spawn
 spawnd
+tags
diff --git a/Makefile b/Makefile
index 5698196..5cf0897 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,8 @@ MAN5 = spawntab.5
 OBJS += daemon.o
 OBJS += service.o
 
+dev: tags all
+
 all: ${BINS}
 
 spawnd: ${OBJS}
@@ -22,8 +24,11 @@ spawnd: ${OBJS}
 
 ${OBJS}: daemon.h
 
+tags: *.c *.h
+	ctags -w *.c *.h
+
 clean:
-	rm -f ${BINS} ${OBJS}
+	rm -f ${BINS} ${OBJS} tags
 
 install: ${BINS} ${MAN5} ${MAN8}
 	install -d ${DESTDIR}${PREFIX}/sbin