summary refs log tree commit diff
diff options
context:
space:
mode:
authorC. McEnroe2020-02-01 21:55:05 -0500
committerC. McEnroe2020-02-01 21:55:05 -0500
commitd59666cb25de1e0a9322e22d1fa94d26583383b2 (patch)
tree079744f39f31f01e46e4ab25237ac84b553f543f
parente5363bcae0f726455fb4198cd21d46721ad5e39a (diff)
Generate tags file
-rw-r--r--.gitignore1
-rw-r--r--Makefile9
2 files changed, 9 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index ab80afd..64b2b13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 *.o
 catgirl
+tags
diff --git a/Makefile b/Makefile
index 4af59ee..ce27d4e 100644
--- a/Makefile
+++ b/Makefile
@@ -11,10 +11,17 @@ OBJS += irc.o
 OBJS += term.o
 OBJS += ui.o
 
+dev: tags all
+
+all: catgirl
+
 catgirl: ${OBJS}
 	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
 
 ${OBJS}: chat.h
 
+tags: *.h *.c
+	ctags -w *.h *.c
+
 clean:
-	rm -f catgirl ${OBJS}
+	rm -f tags catgirl ${OBJS}