From f26e500b97d18313ef68d92337d4d612099ef9ea Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 17 Apr 2025 22:07:39 +0300 Subject: Add files --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a4185d1 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +RM ?= rm -f +PREFIX ?= /usr/local/ +BINDIR ?= ${PREFIX}/bin +MANDIR ?= ${PREFIX}/man + + +.PHONY: all +all: ttb + +install: all + install -d ${BINDIR} ${MANDIR}/man1 + install -m755 ttb ${BINDIR} + install -m644 ttb.1 ${MANDIR}/man1 + +uninstall: + ${RM} ${BINDIR}/ttb + ${RM} ${MANDIR}/man1/ttb.1 + +.PHONY: clean +clean: + ${RM} ttb + +README: ttb.1 + mandoc -Ios=ttb -Tascii ttb.1 | col -b > README -- cgit 1.4.1