summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-10 23:29:06 -0500
committerJune McEnroe <june@causal.agency>2019-01-10 23:29:06 -0500
commit8086649bd66182913356f0002f12053c79a9763f (patch)
treeae8861367f135cd53c1525f40953ba460b85e4bf /bin
parentFix header dependencies in cash Makefile (diff)
downloadsrc-8086649bd66182913356f0002f12053c79a9763f.tar.gz
src-8086649bd66182913356f0002f12053c79a9763f.zip
Add cash install and uninstall targets
Diffstat (limited to 'bin')
-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/%)
21-11-29tls: Revert accidentally(?) reverted upstream 3.4.2June McEnroe 2021-11-29Import LibreSSL 3.4.2June McEnroe 2021-10-14Import LibreSSL 3.4.1June McEnroe 2021-09-17Import LibreSSL 3.4.0June McEnroe 2021-08-24Import LibreSSL 3.3.4June McEnroe 2021-05-25Bump version to 3.3.3p1 3.3.3p1June McEnroe 2021-05-25build: Add scripts to EXTRA_DISTJune McEnroe 2021-05-25import: Add missing scripts/wrap-compiler-for-flag-checkJune McEnroe 2021-05-08Import LibreSSL 3.3.3June McEnroe 2021-04-18build: Remove added x509_verify.3 links 3.3.2June McEnroe 2021-04-18tls: Use EC_KEY_set_ex_dataJune McEnroe 2021-04-18Import LibreSSL 3.3.2June McEnroe 2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe 2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe Some compat sources (getentropy_linux.c for example) require OpenSSL. Reported by Robert Scheck. 2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe