xref: /freebsd/share/termcap/Makefile (revision ce9f2d31b3746d273d14d8cdb28837847f8b867d)
1#	@(#)Makefile	8.1 (Berkeley) 6/8/93
2# $FreeBSD$
3
4# reorder gives an editor command for most common terminals
5# (in reverse order from n'th to 1'st most commonly used)
6# to move them to the front of termcap
7#
8MAN=	termcap.5
9
10FILES=		termcap termcap.db
11FILESDIR=	${BINDIR}/misc
12CLEANFILES+=	termcap.db
13
14.include <bsd.endian.mk>
15.if ${TARGET_ENDIANNESS} == "1234"
16CAP_MKDB_ENDIAN= -l
17.elif ${TARGET_ENDIANNESS} == "4321"
18CAP_MKDB_ENDIAN= -b
19.else
20CAP_MKDB_ENDIAN=
21.endif
22
23termcap.db: termcap
24	cap_mkdb ${CAP_MKDB_ENDIAN} -f ${.TARGET:R} ${.ALLSRC}
25
26etc-termcap:
27	${INSTALL_RSYMLINK} ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
28
29.include <bsd.prog.mk>
30