about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-02-12 20:19:18 -0500
committerJune McEnroe <june@causal.agency>2022-02-12 20:19:18 -0500
commit28a27a2c0fdbd05328a4c30fbb63a4e3c6e12432 (patch)
tree9271c7b8cedb29cd3ff934f886b23459292b498a /scripts
parentUse compat_readpassphrase.c on Linux (diff)
downloadcatgirl-28a27a2c0fdbd05328a4c30fbb63a4e3c6e12432.tar.gz
catgirl-28a27a2c0fdbd05328a4c30fbb63a4e3c6e12432.zip
Move sandman build to scripts/Makefile
Diffstat (limited to 'scripts')
-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