summary refs log tree commit diff
path: root/bin/cash/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/Makefile')
-rw-r--r--bin/cash/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/cash/Makefile b/bin/cash/Makefile
index 13c965f2..2442aca9 100644
--- a/bin/cash/Makefile
+++ b/bin/cash/Makefile
@@ -1,3 +1,6 @@
+PREFIX = /usr/local
+MANDIR = $(PREFIX)/share/man
+
 CFLAGS += -std=c99 -Wall -Wextra -DSHELL
 LDLIBS = -ledit
 
@@ -37,6 +40,8 @@ GENHDRS = builtins.h nodes.h syntax.h token.h
 SRCS += $(GENSRCS)
 OBJS = $(SRCS:.c=.o)
 
+MAN1 = cash.1 cash-kill.1 cash-printf.1 cash-test.1
+
 all: tags cash .depend
 
 cash: $(OBJS)
@@ -66,3 +71,11 @@ token.h: mktokens
 
 clean:
 	rm -f cash $(OBJS) mknodes mksyntax $(GENSRCS) $(GENHDRS) tags .depend
+
+install: cash $(MAN1)
+	mkdir -p $(PREFIX)/bin $(MANDIR)/man1
+	install cash $(PREFIX)/bin
+	install -m 644 $(MAN1) $(MANDIR)/man1
+
+uninstall:
+	rm -f $(PREFIX)/bin/cash $(MAN1:%=$(MANDIR)/man1/%)
.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe Ridiculous. 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe