summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-04-17 22:07:39 +0300
committerNakidai <nakidai@disroot.org>2025-04-17 22:07:39 +0300
commitf26e500b97d18313ef68d92337d4d612099ef9ea (patch)
tree77ec72c434b29f356220a5cc8f22b46a72918145 /Makefile
downloadttb-f26e500b97d18313ef68d92337d4d612099ef9ea.tar.gz
ttb-f26e500b97d18313ef68d92337d4d612099ef9ea.zip
Add files v1.0.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
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