|
Lines 1-22
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.3 2001/09/17 15:40:09 ru Exp $ |
2 |
# $FreeBSD: src/share/termcap/Makefile,v 1.12.2.3 2001/09/17 15:40:09 ru Exp $ |
| 3 |
|
3 |
|
|
|
4 |
MAN= termcap.5 |
| 5 |
|
| 6 |
TERMCAP= termcap |
| 7 |
.if defined(NO_TERMTYPES) |
| 8 |
TERMCAPSRC= termcap.src |
| 9 |
.else |
| 10 |
TERMCAPSRC= termtypes.tc |
| 11 |
.endif |
| 12 |
TERMCAPDB= termcap.db |
| 13 |
|
| 14 |
FILES= ${TERMCAP} ${TERMCAPDB} |
| 15 |
CLEANFILES+= ${FILES} |
| 16 |
|
| 17 |
CAP_MKDB?= cap_mkdb |
| 18 |
|
| 4 |
# reorder gives an editor command for most common terminals |
19 |
# reorder gives an editor command for most common terminals |
| 5 |
# (in reverse order from n'th to 1'st most commonly used) |
20 |
# (in reverse order from n'th to 1'st most commonly used) |
| 6 |
# to move them to the front of termcap |
21 |
# to move them to the front of termcap |
| 7 |
# |
22 |
.if defined(NO_TERMTYPES) |
| 8 |
MAN= termcap.5 |
23 |
REORDER= ${.CURDIR}/reorder |
| 9 |
|
24 |
.else |
| 10 |
CLEANFILES+= termcap termcap.db |
25 |
REORDER= ${.CURDIR}/reorder.tc |
| 11 |
FILES= termcap termcap.db |
26 |
.endif |
| 12 |
|
27 |
|
| 13 |
all: termcap termcap.db |
28 |
all: ${FILES} |
| 14 |
|
29 |
|
| 15 |
termcap: reorder termcap.src |
30 |
${TERMCAP}: ${REORDER} ${TERMCAPSRC} |
| 16 |
TERM=dumb ex - ${.CURDIR}/termcap.src < ${.CURDIR}/reorder |
31 |
@rm -f ${.TARGET} |
|
|
32 |
TERM=dumb ex - ${.CURDIR}/${TERMCAPSRC} < ${REORDER} |
| 33 |
# IMHO, the new termtypes.tc file don't need to be reordered... |
| 34 |
# ln -fs ${.CURDIR}/${TERMCAPSRC} ${.TARGET} |
| 17 |
|
35 |
|
| 18 |
termcap.db: termcap |
36 |
${TERMCAPDB}: ${TERMCAP} |
| 19 |
cap_mkdb termcap |
37 |
${CAP_MKDB} ${TERMCAP} 2> /dev/null |
| 20 |
|
38 |
|
| 21 |
beforeinstall: |
39 |
beforeinstall: |
| 22 |
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} \ |
40 |
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} \ |