summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-24 20:42:27 -0500
committerJune McEnroe <june@causal.agency>2019-01-24 20:42:27 -0500
commite95a6b776e4cd126561fdcafcae9801cea64a3b0 (patch)
treeb7adf142dabc178674d9de20f71e5c7d9629c302 /Makefile
parentUpdate chroot files for LibreSSL 2.8.3 (diff)
downloadcatgirl-e95a6b776e4cd126561fdcafcae9801cea64a3b0.tar.gz
catgirl-e95a6b776e4cd126561fdcafcae9801cea64a3b0.zip
Tweak Makefile ordering and naming
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 15 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 6e24121..e9cc134 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 PREFIX = ~/.local
-MANDIR = $(PREFIX)/share/man/man
+MANDIR = $(PREFIX)/share/man
 CHROOT_USER = chat
 CHROOT_GROUP = $(CHROOT_USER)
 LIBRESSL_PREFIX = /usr/local
@@ -10,7 +10,7 @@ LDFLAGS += -L$(LIBRESSL_PREFIX)/lib
 LDLIBS = -lcursesw -ltls
 
 BINS = catgirl
-MANS = catgirl.1
+MAN1 = catgirl.1
 
 -include config.mk
 
@@ -35,30 +35,30 @@ TESTS += term.t
 
 all: tags $(BINS) test
 
-$(OBJS): chat.h
-
 catgirl: $(OBJS)
 	$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
 
+$(OBJS): chat.h
+
+test: $(TESTS)
+	set -e; $(TESTS:%=./%;)
+
 .SUFFIXES: .t
 
 .c.t:
 	$(CC) $(CFLAGS) -DTEST $(LDFLAGS) $< $(LDLIBS) -o $@
 
-test: $(TESTS)
-	set -e; $(TESTS:%=./%;)
-
-tags: *.h *.c
-	ctags -w *.h *.c
+tags: *.c *.h
+	ctags -w *.c *.h
 
-install: $(BINS) $(MANS)
-	install -d $(PREFIX)/bin $(MANDIR)1
+install: $(BINS) $(MAN1)
+	install -d $(PREFIX)/bin $(MANDIR)/man1
 	install $(BINS) $(PREFIX)/bin
-	install -m 644 $(MANS) $(MANDIR)1
+	install -m 644 $(MAN1) $(MANDIR)/man1
 
 uninstall:
 	rm -f $(BINS:%=$(PREFIX)/bin/%)
-	rm -f $(MAN:%=%(MANDIR)1/%)
+	rm -f $(MAN1:%=$(MANDIR)/man1/%)
 
 chroot.tar: catgirl catgirl.1 man.sh
 	install -d -o root -g wheel \
@@ -93,10 +93,10 @@ chroot.tar: catgirl catgirl.1 man.sh
 	tar -cf chroot.tar -C root bin etc home lib libexec usr
 
 install-chroot: chroot.tar
-	tar -xf chroot.tar -C /home/$(CHROOT_USER)
+	tar -x -f chroot.tar -C /home/$(CHROOT_USER)
 
 clean:
-	rm -fr $(OBJS) $(BINS) $(TESTS) tags root chroot.tar
+	rm -fr $(BINS) $(OBJS) $(TESTS) tags root chroot.tar
 
 README: catgirl.7
 	mandoc catgirl.7 | col -bx > README
pressorsLars Hjemli 2009-07-31Add generic filter/plugin infrastructureLars Hjemli 2009-07-25Add support for mime type registration and lookupLars Hjemli 2009-07-25cgit.h: keep config flags sortedLars Hjemli 2009-07-25cgitrc.5.txt: document 'embedded' and 'noheader'Lars Hjemli 2009-07-25Add support for 'noheader' optionLars Hjemli 2009-07-25cgitrc.5.txt: document 'head-include'Lars Hjemli 2009-07-25ui-blob: return 'application/octet-stream' for binary blobsLars Hjemli 2009-07-25ui-plain: Return 'application/octet-stream' for binary files.Remko Tronçon 2009-06-11use cgit_httpscheme() for atom feedDiego Ongaro 2009-06-11add cgit_httpscheme() -> http:// or https://Diego Ongaro 2009-06-07Return http statuscode 404 on unknown branchLars Hjemli 2009-06-07Add head-include configuration option.Mark Lodato 2009-03-15CGIT 0.8.2.1Lars Hjemli 2009-03-15Fix doc-related glitches in Makefile and .gitignoreLars Hjemli 2009-03-15ui-snapshot: avoid segfault when no filename is specifiedLars Hjemli 2009-03-15fix segfault when displaying empty blobsEric Wong 2009-02-19Add support for HEAD requestsLars Hjemli 2009-02-19Add support for ETag in 'plain' viewLars Hjemli 2009-02-12ui-tree: escape ascii-text properly in hexdump viewLars Hjemli 2009-02-12Makefile: add doc-related targetsLars Hjemli