1 # @(#)Makefile 8.1 (Berkeley) 6/8/93
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
10 FILES= termcap termcap.db
11 FILESDIR= ${BINDIR}/misc
12 CLEANFILES+= termcap termcap.db
14 termcap: reorder termcap.src
15 TERM=dumb TERMCAP=dumb: ex - ${.CURDIR}/termcap.src < ${.CURDIR}/reorder
17 .include <bsd.endian.mk>
18 .if ${TARGET_ENDIANNESS} == "1234"
20 .elif ${TARGET_ENDIANNESS} == "4321"
27 cap_mkdb ${CAP_MKDB_ENDIAN} termcap
30 ln -fs ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
32 .include <bsd.prog.mk>