xref: /freebsd/share/termcap/Makefile (revision 8a8f2ebd2d3e09cfc057b5ba6ced2fd3151cfb0f)
1# reorder gives an editor command for most common terminals
2# (in reverse order from n'th to 1'st most commonly used)
3# to move them to the front of termcap
4
5MAN=		termcap.5
6MANPACKAGE=	ncurses
7
8# Note: This is in ncurses-lib rather than ncurses because without it, ncurses
9# doesn't work, and the base ncurses package is optional.
10PACKAGE=	ncurses-lib
11FILES=		termcap termcap.db
12FILESDIR=	${BINDIR}/misc
13CLEANFILES+=	termcap.db
14
15.include <bsd.endian.mk>
16.include <src.tools.mk>
17
18termcap.db: termcap
19	${CAP_MKDB_CMD} ${CAP_MKDB_ENDIAN} -f ${.TARGET:R} ${.ALLSRC}
20
21etc-termcap:
22	${INSTALL_SYMLINK} -T "package=ncurses-lib" \
23	    ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
24
25.include <bsd.prog.mk>
26