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}
 
llow=1'>Implement service statusJune McEnroe 2020-08-15Parse control commandsJune McEnroe 2020-08-15Read service pipesJune McEnroe Changed line reading functions to return const char * because modifying the strings by adding '\0' into them screws up the following call. 2020-08-15Implement non-blocking line-buffered readingJune McEnroe 2020-08-15Generate tags fileJune McEnroe 2020-08-15Just use CLOCK_MONOTONIC and clean up includesJune McEnroe CLOCK_MONOTONIC exists everywhere. 2020-08-15Reap childrenJune McEnroe 2020-08-14Implement serviceSignal, serviceStop, serviceRestartJune McEnroe 2020-08-14Reset restartInterval and restartDeadline on startJune McEnroe 2020-08-14Switch to timespec for timeoutsJune McEnroe Can be passed to ppoll(2) directly. 2020-08-14Implement serviceStartJune McEnroe 2020-08-14Flesh out Service structJune McEnroe 2020-08-14Build environment for servicesJune McEnroe 2020-08-14Implement spawntab parsingJune McEnroe 2020-08-14Open syslog, daemonize, write PIDJune McEnroe 2020-08-14Implement user and group lookupJune McEnroe 2020-08-14Add install targetJune McEnroe 2020-08-14Add spawnd skeletonJune McEnroebc041634c7ef7c9f077109144068c4&follow=1'>Open syslog, daemonize, write PIDJune McEnroe 2020-08-14Implement user and group lookupJune McEnroe 2020-08-14Add install targetJune McEnroe 2020-08-14Add spawnd skeletonJune McEnroe