From bcac5a93e1a3c5fad8cfaeba66a03eb251e1db1b Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 10 Jan 2019 23:29:06 -0500 Subject: Add cash install and uninstall targets --- bin/cash/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bin/cash') 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/%) -- cgit 1.4.1 llow=1'>diff
path: root/bin/1sh/mail.h (unfollow)
Commit message (Expand)Author
13 daysUpdate bioJune McEnroe
2024-06-15Add photo descriptions from June 12June McEnroe
2024-06-10Add first roll of film from June 8June McEnroe
2024-06-10Cope with not having an EXIF infoJune McEnroe
2024-06-10Resize using target pixel counts for consistencyJune McEnroe
2024-06-10Add The Girl Who Was Convinced...June McEnroe
2024-06-09Add photos from May 31June McEnroe
2024-06-09Use monospace on photo pagesJune McEnroe
2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe
2024-05-22Remove use of sysexits.hJune McEnroe
2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe
2024-05-21Fix = precedence in whenJune McEnroe