summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-09 15:02:47 -0500
committerJune McEnroe <june@causal.agency>2020-02-09 15:02:47 -0500
commit1d26c880ed305951715a548f934eb231b8fc9317 (patch)
tree6cc88daa016249fc34e518330d25487e80da44a3 /Makefile
parentRemove unnecessary uiDraw (diff)
downloadcatgirl-1d26c880ed305951715a548f934eb231b8fc9317.tar.gz
catgirl-1d26c880ed305951715a548f934eb231b8fc9317.zip
Add install target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bcbb0d8..89af9b3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+PREFIX = /usr/local
+MANDIR = ${PREFIX}/share/man
+
 CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
 LDLIBS = -lcrypto -ltls -lncursesw
 
@@ -27,3 +30,11 @@ tags: *.h *.c
 
 clean:
 	rm -f tags catgirl ${OBJS}
+
+install: catgirl catgirl.1
+	install -d ${PREFIX}/bin ${MANDIR}/man1
+	install catgirl ${PREFIX}/bin
+	gzip -c catgirl.1 > ${MANDIR}/man1/catgirl.1.gz
+
+uninstall:
+	rm -f ${PREFIX}/bin/catgirl ${MANDIR}/man1/catgirl.1.gz
s='logheader'>2019-02-21Replace "view" with "window"June McEnroe I think originally I didn't want to use the same word as curses WINDOW but it's really much clearer for the user if they're just called windows. UI code probably needs yet another rewrite though. Still feels messy. 2019-02-21Remove ROT13June McEnroe It's just not convenient when it can only do the whole line... 2019-02-21Clean up man pageJune McEnroe 2019-01-26Draw UI before connectingJune McEnroe Otherwise the "Traveling" message isn't visible while connecting. 2019-01-25Avoid unused variable warnings with getyxJune McEnroe 2019-01-25Add GNU/Linux build instructionsJune McEnroe