about summary refs log tree commit diff
path: root/scripts/Makefile
diff options
context:
space:
mode:
authorKylie McClain <kylie@somas.is>2022-03-01 20:17:25 -0500
committerKylie McClain <kylie@somas.is>2022-03-01 20:17:25 -0500
commit11aa8aefb6aa62bf0ffbd3701037daf147dd19d3 (patch)
tree1a3326ab200bfcd28347d80bc7f0651b4b1bb5a9 /scripts/Makefile
parentchat.c: o pona e toki lon open ilo (diff)
parentSpecify commands which depend on caps (diff)
downloadcatgirl-11aa8aefb6aa62bf0ffbd3701037daf147dd19d3.tar.gz
catgirl-11aa8aefb6aa62bf0ffbd3701037daf147dd19d3.zip
Merge branch 'master' of git.causal.agency:pub/catgirl into somasis/tokipona
Diffstat (limited to '')
-rw-r--r--scripts/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
new file mode 100644
index 0000000..179a2d3
--- /dev/null
+++ b/scripts/Makefile
@@ -0,0 +1,22 @@
+PREFIX ?= /usr/local
+BINDIR ?= ${PREFIX}/bin
+MANDIR ?= ${PREFIX}/man
+
+CFLAGS += -Wall -Wextra
+
+-include ../config.mk
+
+LDLIBS = -framework Cocoa
+
+all: sandman
+
+clean:
+	rm -f sandman
+
+install: sandman sandman.1
+	install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}/man1
+	install sandman ${DESTDIR}${BINDIR}
+	install -m 644 sandman.1 ${DESTDIR}${MANDIR}/man1
+
+uninstall:
+	rm -f ${DESTDIR}${BINDIR}/sandman ${DESTDIR}/man/man1/sandman.1