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-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
3872 | 5 |
# Common Development and Distribution License (the "License"). |
6 |
# You may not use this file except in compliance with the License. |
|
0 | 7 |
# |
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
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 | 22 |
# Use is subject to license terms. |
0 | 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 | 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 | 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 | 33 |
|
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 | 37 |
|
38 |
ROOTSHARELIBDIR = $(ROOT)/usr/share/lib |
|
39 |
ROOTTABDIR = $(ROOTSHARELIBDIR)/tabset |
|
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 | 42 |
|
43 |
ROOTSYMLINK = $(ROOTETC)/termcap |
|
44 |
RELROOTETC = ../usr/share/lib |
|
45 |
ROOTLIBSYMLINK = $(ROOTLIB)/tabset |
|
46 |
RELROOTLIB = ../share/lib |
|
47 |
||
48 |
ROOTTABSET = $(TABSETSRC:%=$(ROOTTABDIR)/%) |
|
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 | 52 |
|
53 |
.KEEP_STATE: |
|
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 | 56 |
|
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 | 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 | 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 | 66 |
install: all $(ROOTTERMDIR) $(ROOTTERMDIR)/s/sun $(ROOTTABDIR) \ |
67 |
$(ROOTTABSET) $(ROOTSHARELIBDIR)/termcap $(ROOTSYMLINK) \ |
|
68 |
$(ROOTLIBSYMLINK) |
|
69 |
||
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 | 72 |
|
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 | 75 |
|
76 |
lint: |
|
77 |
||
78 |
clean: |
|
79 |
||
13444
c1ed50709bff
294 ONNV terminal definitions are old and crufty
Yuri Pankov <yuri.pankov@nexenta.com>
parents:
10207
diff
changeset
|
80 |
clobber: |