Move sandman build to scripts/Makefile

master
June McEnroe 2022-02-12 20:19:18 -05:00
parent c95c8cd1b4
commit 28a27a2c0f
3 changed files with 25 additions and 14 deletions

View File

@ -48,17 +48,6 @@ install: catgirl catgirl.1
uninstall: uninstall:
rm -f ${DESTDIR}${BINDIR}/catgirl ${DESTDIR}${MANDIR}/man1/catgirl.1 rm -f ${DESTDIR}${BINDIR}/catgirl ${DESTDIR}${MANDIR}/man1/catgirl.1
scripts/sandman: scripts/sandman.o
${CC} ${LDFLAGS} scripts/sandman.o -framework Cocoa -o $@
install-sandman: scripts/sandman scripts/sandman.1
install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}/man1
install scripts/sandman ${DESTDIR}${BINDIR}
install -m 644 scripts/sandman.1 ${DESTDIR}${MANDIR}/man1
uninstall-sandman:
rm -f ${DESTDIR}${BINDIR}/sandman ${DESTDIR}${MANDIR}/man1/sandman.1
CHROOT_USER = chat CHROOT_USER = chat
CHROOT_GROUP = ${CHROOT_USER} CHROOT_GROUP = ${CHROOT_USER}

View File

@ -1,5 +1,5 @@
.\" To view this file, run: man ./README.7 .\" To view this file, run: man ./README.7
.Dd June 28, 2021 .Dd February 12, 2022
.Dt README 7 .Dt README 7
.Os "Causal Agency" .Os "Causal Agency"
. .
@ -167,8 +167,8 @@ to stop and start
on system sleep and wake. on system sleep and wake.
Install it as follows: Install it as follows:
.Bd -literal -offset indent .Bd -literal -offset indent
$ make scripts/sandman $ make -C scripts sandman
# make install-sandman # make -C scripts install
.Ed .Ed
. .
.Sh FILES .Sh FILES

22
scripts/Makefile 100644
View File

@ -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