0
|
1 |
#
|
|
2 |
# CDDL HEADER START
|
|
3 |
#
|
|
4 |
# The contents of this file are subject to the terms of the
|
|
5 |
# Common Development and Distribution License, Version 1.0 only
|
|
6 |
# (the "License"). You may not use this file except in compliance
|
|
7 |
# with the License.
|
|
8 |
#
|
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
# or http://www.opensolaris.org/os/licensing.
|
|
11 |
# See the License for the specific language governing permissions
|
|
12 |
# and limitations under the License.
|
|
13 |
#
|
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
#
|
|
20 |
# CDDL HEADER END
|
|
21 |
#
|
|
22 |
#
|
|
23 |
# ident "%Z%%M% %I% %E% SMI"
|
|
24 |
#
|
|
25 |
# Copyright (c) 1989,1998 by Sun Microsystems, Inc.
|
|
26 |
# All rights reserved.
|
|
27 |
#
|
|
28 |
# cmd/lp/terminfo/Makefile
|
|
29 |
#
|
|
30 |
|
|
31 |
include ../Makefile.lp
|
|
32 |
|
|
33 |
ROOTTERMINFO = $(ROOT)/usr/share/lib/terminfo
|
|
34 |
|
|
35 |
TIC = tic
|
|
36 |
|
|
37 |
SRCS = PS.ti 40.ti 477.ti 53x0.ti 593.ti daisy.ti hplaser.ti \
|
|
38 |
44x.ti 47x.ti 57x.ti dec.ti ibm.ti 45x.ti 495.ti \
|
|
39 |
58x.ti citoh.ti epson.ti unknown.ti
|
|
40 |
|
|
41 |
|
|
42 |
TMPSRC = terminfo.src
|
|
43 |
|
|
44 |
DIRMODE= 755
|
|
45 |
FILEMODE= 644
|
|
46 |
GROUP= bin
|
|
47 |
|
|
48 |
.KEEP_STATE:
|
|
49 |
|
|
50 |
all : $(TMPSRC)
|
|
51 |
|
|
52 |
$(TMPSRC) : $(SRCS)
|
|
53 |
$(RM) $@; cat $(SRCS) > $@
|
|
54 |
|
|
55 |
#
|
|
56 |
# Since all entries are created at once, we simply choose one of the
|
|
57 |
# target files and assume everything will be made at one time. This
|
|
58 |
# has holes (like if somebody removes P/PSR but not P/PS), but those
|
|
59 |
# are the breaks.
|
|
60 |
#
|
|
61 |
install : all $(ROOTTERMINFO) $(ROOTTERMINFO)/P/PS
|
|
62 |
|
|
63 |
$(ROOTTERMINFO)/P/PS: $(TMPSRC)
|
|
64 |
TERMINFO=$(ROOTTERMINFO) 2>&1 $(TIC) -v $(TMPSRC) > errs
|
|
65 |
$(CHOWN) -R $(OWNER) $(ROOTTERMINFO)
|
|
66 |
$(CHGRP) -R $(GROUP) $(ROOTTERMINFO)
|
|
67 |
@$(ECHO) "\n`2>/dev/null cat errs|wc -l` entries have been compiled\n"
|
|
68 |
@-( 2>/dev/null cat errs|grep -iv "^mkdir"|grep -iv "^create"|grep -iv "^link"|grep -vi $(TMPSRC)|grep -vi touch|grep -vi "working"; \
|
|
69 |
if [ $$? -ne 0 ] ; \
|
|
70 |
then \
|
|
71 |
$(ECHO) "\tNo errors\n"; \
|
|
72 |
else \
|
|
73 |
$(ECHO) "\n\tErrors can be found in `pwd`/errs\n"; \
|
|
74 |
fi \
|
|
75 |
)
|
|
76 |
|
|
77 |
$(ROOTTERMINFO) :
|
|
78 |
$(INS.dir)
|
|
79 |
|
|
80 |
clean clobber:
|
|
81 |
$(RM) $(TMPSRC)
|
|
82 |
|
|
83 |
strip lint :
|
|
84 |
|