diff options
author | June McEnroe <june@causal.agency> | 2023-07-09 21:08:01 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2023-07-09 21:08:01 -0400 |
commit | 8274be77a0b01f3e29bd1137be77d82077c038a3 (patch) | |
tree | dbc96885e2e0fe7aa2dcff6c75e1ec4f81bfe5a7 /Makefile | |
parent | Fix README files list (diff) | |
download | catgirl-8274be77a0b01f3e29bd1137be77d82077c038a3.tar.gz catgirl-8274be77a0b01f3e29bd1137be77d82077c038a3.zip |
Move sandman to top-level, add --enable-sandman 2.2
Diffstat (limited to '')
-rw-r--r-- | Makefile | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Makefile b/Makefile index 3abba03..66fb408 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,13 @@ CFLAGS += ${CEXTS:%=-Wno-%} LDADD.libtls = -ltls LDADD.ncursesw = -lncursesw +BINS = catgirl +MANS = ${BINS:=.1} + -include config.mk LDLIBS = ${LDADD.libtls} ${LDADD.ncursesw} +LDLIBS.sandman = -framework Cocoa OBJS += buffer.o OBJS += chat.o @@ -28,11 +32,13 @@ OBJS += url.o OBJS += window.o OBJS += xdg.o +OBJS.sandman = sandman.o + TESTS += edit.t dev: tags all check -all: catgirl +all: ${BINS} catgirl: ${OBJS} ${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@ @@ -41,6 +47,9 @@ ${OBJS}: chat.h edit.o edit.t input.o: edit.h +sandman: ${OBJS.sandman} + ${CC} ${LDFLAGS} ${OBJS.$@} ${LDLIBS.$@} -o $@ + check: ${TESTS} .SUFFIXES: .t @@ -53,15 +62,16 @@ tags: *.[ch] ctags -w *.[ch] clean: - rm -f catgirl ${OBJS} ${TESTS} tags + rm -f ${BINS} ${OBJS} ${OBJS.sandman} ${TESTS} tags -install: catgirl catgirl.1 +install: ${BINS} ${MANS} install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}/man1 - install catgirl ${DESTDIR}${BINDIR} - install -m 644 catgirl.1 ${DESTDIR}${MANDIR}/man1 + install ${BINS} ${DESTDIR}${BINDIR} + install -m 644 ${MANS} ${DESTDIR}${MANDIR}/man1 uninstall: - rm -f ${DESTDIR}${BINDIR}/catgirl ${DESTDIR}${MANDIR}/man1/catgirl.1 + rm -f ${BINS:%=${DESTDIR}${BINDIR}/%} + rm -f ${MANS:%=${DESTDIR}${MANDIR}/man1/%} CHROOT_USER = chat CHROOT_GROUP = ${CHROOT_USER} |