summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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
href='/src/commit/txt/books.txt?id=36f33c987d21a18915fb7e05487d6252a1bc2da5&follow=1'>Add The Stone SkyJune McEnroe 2020-03-08Publish "How I Relay Chat"June McEnroe 2020-03-03Don't use $ inside $(())June McEnroe 2020-03-03Remove setoptJune McEnroe 2020-03-03Use getopts in shell scriptsJune McEnroe 2020-02-27Style %T outside of Rs in italicJune McEnroe 2020-02-26Add Fierce Femmes and Notorious LiarsJune McEnroe 2020-02-23Add This Is How You Lose the Time WarJune McEnroe 2020-02-22Add See Ya LaterJune McEnroe 2020-02-20Remove wiki scriptJune McEnroe 2020-02-19Add The Obelisk GateJune McEnroe 2020-02-17Add Four Tet — HandsJune McEnroe 2020-02-12Simplify macOS notify-sendJune 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 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe 2020-01-28Change scout sensitivity to 1.4June McEnroe 2020-01-28Import shows.txtJune McEnroe