diff options
author | Curtis McEnroe | 2018-11-30 15:41:21 -0500 |
---|---|---|
committer | Curtis McEnroe | 2018-11-30 15:41:21 -0500 |
commit | deec27410ab96b001ea97610ffe1512dcb14643f (patch) | |
tree | ea3ec0e0102fe6e6124f17669d63b54a2a280524 /Makefile | |
parent | 908b834c1a6346b8bde7168e42d1b9786e4f658f (diff) |
Add sandman
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
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 |