about summary refs log tree commit diff
path: root/Makefile
blob: e666b2eb22240fb4c1657aa84f7919afdfbcef86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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