about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-04-20 22:49:48 +0300
committerNakidai <nakidai@disroot.org>2025-04-20 22:49:48 +0300
commit91103235348e0ebf2a602f6db2dc429fe5289739 (patch)
tree232675179519783d3c049205eeb1417383d60113 /Makefile
downloaddeansi-91103235348e0ebf2a602f6db2dc429fe5289739.tar.gz
deansi-91103235348e0ebf2a602f6db2dc429fe5289739.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..e666b2e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+RM ?= rm -f
+PREFIX ?= /usr/local/
+BINDIR ?= ${PREFIX}/bin
+MANDIR ?= ${PREFIX}/man
+
+
+.PHONY: all
+all: deansi
+
+install: all
+	install -d ${BINDIR} ${MANDIR}/man1
+	install -m755 deansi ${BINDIR}
+	install -m644 deansi.1 ${MANDIR}/man1
+
+uninstall:
+	${RM} ${BINDIR}/deansi
+	${RM} ${MANDIR}/man1/deansi.1
+
+.PHONY: clean
+clean:
+	${RM} deansi
+
+README: deansi.1
+	mandoc -Ios=deansi -Tascii deansi.1 | col -b > README