about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
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