summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-12 21:31:09 -0500
committerJune McEnroe <june@causal.agency>2020-02-12 21:31:09 -0500
commit9bed890aa889dad4c46b6d18fff8cbdac9feab1a (patch)
treed408ff3884efc17c440bec56ee8311aecaecbc62 /Makefile
parentDocument scripts in README (diff)
downloadcatgirl-9bed890aa889dad4c46b6d18fff8cbdac9feab1a.tar.gz
catgirl-9bed890aa889dad4c46b6d18fff8cbdac9feab1a.zip
Add sandman wrapper
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4d20e62..ceaaf38 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,17 @@ install: catgirl catgirl.1
 uninstall:
 	rm -f ${PREFIX}/bin/catgirl ${MANDIR}/man1/catgirl.1.gz
 
+scripts/sandman: scripts/sandman.o
+	${CC} ${LDFLAGS} scripts/sandman.o -framework Cocoa -o $@
+
+install-sandman: scripts/sandman scripts/sandman.1
+	install -d ${PREFIX}/bin ${MANDIR}/man1
+	install scripts/sandman ${PREFIX}/bin
+	gzip -c scripts/sandman.1 > ${MANDIR}/man1/sandman.1.gz
+
+uninstall-sandman:
+	rm -f ${PREFIX}/bin/sandman ${MANDIR}/man1/sandman.1.gz
+
 CHROOT_USER = chat
 CHROOT_GROUP = ${CHROOT_USER}