summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-30 15:41:21 -0500
committerJune McEnroe <june@causal.agency>2018-11-30 15:41:21 -0500
commitdeec27410ab96b001ea97610ffe1512dcb14643f (patch)
treeea3ec0e0102fe6e6124f17669d63b54a2a280524 /Makefile
parentStrip timestamps from log replay (diff)
downloadcatgirl-deec27410ab96b001ea97610ffe1512dcb14643f.tar.gz
catgirl-deec27410ab96b001ea97610ffe1512dcb14643f.zip
Add sandman
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 14a4a37..e09be8b 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,9 @@ CFLAGS += -I$(LIBRESSL_PREFIX)/include
 LDFLAGS += -L$(LIBRESSL_PREFIX)/lib
 LDLIBS = -lcursesw -ltls
 
+BINS = catgirl
+MANS = catgirl.1
+
 -include config.mk
 
 OBJS += chat.o
@@ -29,7 +32,7 @@ OBJS += url.o
 TESTS += format.t
 TESTS += term.t
 
-all: tags catgirl test
+all: tags $(BINS) test
 
 $(OBJS): chat.h
 
@@ -47,14 +50,14 @@ test: $(TESTS)
 tags: *.h *.c
 	ctags -w *.h *.c
 
-install: catgirl catgirl.1
+install: $(BINS) $(MANS)
 	install -d $(PREFIX)/bin $(MANDIR)1
-	install catgirl $(PREFIX)/bin/catgirl
-	install -m 644 catgirl.1 $(MANDIR)1/catgirl.1
+	install $(BINS) $(PREFIX)/bin
+	install -m 644 $(MANS) $(MANDIR)1
 
 uninstall:
-	rm -f $(PREFIX)/bin/catgirl
-	rm -f $(MANDIR)1/catgirl.1
+	rm -f $(BINS:%=$(PREFIX)/bin/%)
+	rm -f $(MAN:%=%(MANDIR)1/%)
 
 chroot.tar: catgirl catgirl.1 man.sh
 	install -d -o root -g wheel \
@@ -92,7 +95,7 @@ install-chroot: chroot.tar
 	tar -xf chroot.tar -C /home/$(CHROOT_USER)
 
 clean:
-	rm -fr $(OBJS) catgirl $(TESTS) tags root chroot.tar
+	rm -fr $(OBJS) $(BINS) $(TESTS) tags root chroot.tar
 
 README: catgirl.7
 	mandoc catgirl.7 | col -bx > README
td>June McEnroe 2020-02-12Add imbox and notemap to pageJune McEnroe 2020-02-12Collapse simple linksJune McEnroe 2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe