xref: /freebsd/etc/termcap/Makefile (revision 8a8f2ebd2d3e09cfc057b5ba6ced2fd3151cfb0f)
1.PATH: ${SRCTOP}/share/termcap
2
3# Note: This is in ncurses-lib rather than ncurses because without it, ncurses
4# doesn't work, and the base ncurses package is optional.
5PACKAGE=	ncurses-lib
6CLEANFILES+=	termcap.small
7CONFS=		termcap.small
8
9TERMCAP_SMALL_ENTS?=	SC cons25 cons25-m cons25-w cons25l1 cons25l1-m \
10    cons25l1-w cons25l2 cons25l2-m cons25l7 cons25l7-m cons25r cons25r-m \
11    cons25r-mv cons25r-v cons25w cons30 cons30-m cons30-w cons30l1 cons30l1-m \
12    cons30l1-w cons30l2 cons30l2-m cons30l7 cons30l7-m cons30r cons30r-m \
13    cons30r-mv cons30r-v cons43 cons43-m cons43-w cons43l1 cons43l1-m \
14    cons43l1-w cons43l2 cons43l2-m cons43l7 cons43l7-m cons43r cons43r-m \
15    cons43r-mv cons43r-v cons50 cons50-m cons50-w cons50l1 cons50l1-m \
16    cons50l1-w cons50l2 cons50l2-m cons50l7 cons50l7-m cons50r cons50r-m \
17    cons50r-mv cons50r-v cons60 cons60-m cons60-w cons60l1 cons60l1-m \
18    cons60l1-w cons60l2 cons60l2-m cons60l7 cons60l7-m cons60r cons60r-m \
19    cons60r-mv cons60r-v ecma[+]italics vt100 xterm xterm-256color xterm-basic \
20    xterm-clear xterm-color xterm-new xterm-r6 xterm-r6-clear
21
22termcap.small: termcap
23	set -e; \
24	(echo "# AUTOMATICALLY GENERATED FROM `basename ${.ALLSRC}`"; \
25	for tcname in ${TERMCAP_SMALL_ENTS}; \
26	do \
27		echo; awk "/^$${tcname}[:|]/{ f = 1; print; next } /^[^\t]/{ f = 0 } f" ${.ALLSRC}; \
28	done) > ${.TARGET}
29
30.include <bsd.prog.mk>
31