diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
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 |