View | Details | Raw Unified | Return to bug 30812 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-11 / +42 lines)
Lines 1-23 Link Here
1
#	@(#)Makefile	8.1 (Berkeley) 6/8/93
1
#	@(#)Makefile	8.1 (Berkeley) 6/8/93
2
# $FreeBSD: src/share/termcap/Makefile,v 1.12.2.4 2002/02/18 15:03:35 ru Exp $
2
# $FreeBSD: src/share/termcap/Makefile,v 1.12.2.4 2002/02/18 15:03:35 ru Exp $
3
3
4
MAN=		termcap.5
5
6
NCURSES=	${.CURDIR}/../../contrib/ncurses
7
8
NO_TERMTYPES=	yes	# ncurses termcap database appear to be up-to-date.
9
10
.if defined(NO_TERMTYPES)
11
.if defined(NO_NCTERMCAP)
12
TERMCAPSRC=	${.CURDIR}/termcap.src
13
.else
14
# ftp://invisible-island.net/ncurses/termcap.src.gz
15
TERMCAPSRC=	${NCURSES}/misc/termcap.src
16
.endif
17
.else
18
# http://tuxedo.org/terminfo/termtypes.ti.gz
19
TERMCAPSRC=	${.CURDIR}/termtypes.tc
20
.endif
21
22
TERMCAP=	termcap
23
TERMCAPDB=	termcap.db
24
25
FILES=		map3270 ${TERMCAP} ${TERMCAPDB}
26
FILESDIR=	${BINDIR}/misc
27
CLEANFILES+=	${TERMCAP} ${TERMCAPDB}
28
29
CAP_MKDB?=	cap_mkdb
30
4
# reorder gives an editor command for most common terminals
31
# reorder gives an editor command for most common terminals
5
# (in reverse order from n'th to 1'st most commonly used)
32
# (in reverse order from n'th to 1'st most commonly used)
6
# to move them to the front of termcap
33
# to move them to the front of termcap
7
#
34
.if defined(NO_TERMTYPES) && defined(NO_NCTERMCAP)
8
MAN=	termcap.5
35
REORDER=	reorder
9
36
.else
10
FILES=		map3270 termcap termcap.db
37
REORDER=	# reorder.tc	# newer databases don't need to me reordered.
11
FILESDIR=	${BINDIR}/misc
38
.endif
12
CLEANFILES+=	termcap termcap.db
13
39
14
termcap: reorder termcap.src
40
${TERMCAP}: ${REORDER} ${TERMCAPSRC}
15
	TERM=dumb ex - ${.CURDIR}/termcap.src < ${.CURDIR}/reorder
41
.if defined(NO_TERMTYPES) && defined(NO_NCTERMCAP)
42
	@rm -f ${.TARGET}
43
	TERM=dumb ex - ${TERMCAPSRC} < ${.CURDIR}/${REORDER}
44
.else
45
	ln -fs ${TERMCAPSRC} ${.TARGET}
46
.endif
16
47
17
termcap.db: termcap
48
${TERMCAPDB}: ${TERMCAP}
18
	cap_mkdb termcap
49
	${CAP_MKDB} ${TERMCAP} 2> /dev/null
19
50
20
etc-termcap:
51
etc-termcap:
21
	ln -fs ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
52
	ln -fs ${FILESDIR}/termcap ${DESTDIR}/etc/termcap
22
53
23
.include <bsd.prog.mk>
54
.include <bsd.prog.mk>

Return to bug 30812