xref: /freebsd/share/termcap/Makefile (revision 2be1a816b9ff69588e55be0a84cbe2a31efc0f2f)
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 termcap.db
13
14termcap: reorder termcap.src
15	TERM=dumb TERMCAP=dumb: ex - ${.CURDIR}/termcap.src < ${.CURDIR}/reorder
16
17.include <bsd.endian.mk>
18.if ${TARGET_ENDIANNESS} == "1234"
19CAP_MKDB_ENDIAN= -l
20.elif ${TARGET_ENDIANNESS} == "4321"
21CAP_MKDB_ENDIAN= -b
22.else
23CAP_MKDB_ENDIAN=
24.endif
25
26termcap.db: termcap
27	cap_mkdb ${CAP_MKDB_ENDIAN} termcap
28
29etc-termcap:
30	ln -fs ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
31
32.include <bsd.prog.mk>
33