usr/src/cmd/terminfo/Makefile
author Yuri Pankov <yuri.pankov@nexenta.com>
Tue, 30 Aug 2011 15:16:15 -0700
changeset 13444 c1ed50709bff
parent 10207 87c40ea3fc4b
permissions -rw-r--r--
294 ONNV terminal definitions are old and crufty 1149 tic issues useless warnings about filenames longer than 16 chars Reviewed by: Gordon Ross <[email protected]> Reviewed by: Garrett D'Amore <[email protected]> Approved by: Garrett D'Amore <[email protected]>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     1
#
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     2
# CDDL HEADER START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     3
#
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
3872
a16817aded85 4446280 Add 'screen' terminfo/termcap entry
as145665
parents: 0
diff changeset
     5
# Common Development and Distribution License (the "License").
a16817aded85 4446280 Add 'screen' terminfo/termcap entry
as145665
parents: 0
diff changeset
     6
# You may not use this file except in compliance with the License.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     7
#
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    10
# See the License for the specific language governing permissions
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    11
# and limitations under the License.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    12
#
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    18
#
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    19
# CDDL HEADER END
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    20
#
10207
87c40ea3fc4b 6864230 hiho, hiho, it'ch chtime for CH to go
jmcp <James.McPherson@Sun.COM>
parents: 3872
diff changeset
    21
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3872
a16817aded85 4446280 Add 'screen' terminfo/termcap entry
as145665
parents: 0
diff changeset
    22
# Use is subject to license terms.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    23
#
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    24
# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    25
#
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    26
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    27
PROG=		terminfo
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    28
TABSETSRC=	3101 beehive hds hds3 std stdcrt teleray vt100 wyse-adds xerox1720
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    29
TERMCAPSRC=	termcap.src
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    30
TERMINFOSRC=	terminfo.src
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    31
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    32
include		../Makefile.cmd
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    33
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    34
FILEMODE=	0644
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    35
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    36
TIC=		/usr/bin/tic
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    37
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    38
ROOTSHARELIBDIR	= $(ROOT)/usr/share/lib
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    39
ROOTTABDIR	= $(ROOTSHARELIBDIR)/tabset
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    40
ROOTTERMDIR	= $(ROOTSHARELIBDIR)/terminfo
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    41
DIRS		= $(ROOTTERMDIR) $(ROOTTABDIR)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    42
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    43
ROOTSYMLINK	= $(ROOTETC)/termcap
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    44
RELROOTETC	= ../usr/share/lib
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    45
ROOTLIBSYMLINK	= $(ROOTLIB)/tabset
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    46
RELROOTLIB	= ../share/lib
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    47
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    48
ROOTTABSET	= $(TABSETSRC:%=$(ROOTTABDIR)/%)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    49
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    50
$(ROOTTABDIR)/%:	tabset/%
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    51
		$(INS.file)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    52
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    53
.KEEP_STATE:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    54
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    55
all:		$(TERMCAPSRC) $(TERMINFOSRC)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    56
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    57
$(DIRS):
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    58
		$(INS.dir)
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    59
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    60
$(ROOTTERMDIR)/s/sun: $(TERMINFOSRC)
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    61
		TERMINFO=$(ROOTTERMDIR) $(TIC) $(TERMINFOSRC) 2>/dev/null
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    62
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    63
$(ROOTSHARELIBDIR)/termcap:
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    64
		$(EGREP) -v '^(#|$$)' $(TERMCAPSRC) > $@
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    65
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    66
install:	all $(ROOTTERMDIR) $(ROOTTERMDIR)/s/sun $(ROOTTABDIR) \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    67
		$(ROOTTABSET) $(ROOTSHARELIBDIR)/termcap  $(ROOTSYMLINK) \
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    68
		$(ROOTLIBSYMLINK)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    69
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    70
$(ROOTSYMLINK):
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    71
		$(RM) $@; $(SYMLINK) $(RELROOTETC)/termcap $@
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    72
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    73
$(ROOTLIBSYMLINK):
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    74
		$(RM) $@; $(SYMLINK) $(RELROOTLIB)/tabset $@
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    75
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    76
lint:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    77
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    78
clean:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    79
13444
c1ed50709bff 294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 10207
diff changeset
    80
clobber: