summaryrefslogtreecommitdiff
path: root/share/termtypes/Makefile
blob: a91a93327ed4aaff023d66ce68fdf47aab6f28cf (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
25
26
27
28
29
30
#	$OpenBSD: Makefile,v 1.25 2016/09/25 17:43:11 natano Exp $

MAN=	termcap.5
TIC=	/usr/bin/tic

all: terminfo termcap

terminfo: termtypes.master
	${TIC} -x -o ${.TARGET} ${.ALLSRC}
	@[ -d ${.TARGET} ] || exit 1

termcap: termtypes.master
	${TIC} -C -x ${.ALLSRC} > ${.TARGET}
	@[ -s ${.TARGET} ] || exit 1

realinstall:
	${INSTALL} -d -o root -g wheel ${DESTDIR}${BINDIR}/terminfo
	find terminfo -type f -exec \
	     ${INSTALL} -D ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
	     {} ${DESTDIR}${BINDIR}/{} \;
	${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 termcap \
	     ${DESTDIR}${BINDIR}/misc/termcap
	ln -fs ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
	chown -h root:wheel ${DESTDIR}/etc/termcap

clean:
	rm -f termcap
	rm -rf terminfo

.include <bsd.prog.mk>