about summary refs log tree commit diff
diff options
context:
space:
mode:
-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