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 (the "License"). 6# You may not use this file except in compliance with the License. 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# 21# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22# Use is subject to license terms. 23# 24# cmd/lp/terminfo/Makefile 25# 26 27include ../Makefile.lp 28 29ROOTTERMINFO = $(ROOT)/usr/share/lib/terminfo 30 31TIC = tic 32 33SRCS = PS.ti 40.ti 477.ti 53x0.ti 593.ti daisy.ti hplaser.ti \ 34 44x.ti 47x.ti 57x.ti dec.ti ibm.ti 45x.ti 495.ti \ 35 58x.ti citoh.ti epson.ti unknown.ti 36 37 38TMPSRC = terminfo.src 39 40DIRMODE= 755 41FILEMODE= 644 42 43.KEEP_STATE: 44 45all : $(TMPSRC) 46 47$(TMPSRC) : $(SRCS) 48 $(RM) $@; cat $(SRCS) > $@ 49 50# 51# Since all entries are created at once, we simply choose one of the 52# target files and assume everything will be made at one time. This 53# has holes (like if somebody removes P/PSR but not P/PS), but those 54# are the breaks. 55# 56install : all $(ROOTTERMINFO) $(ROOTTERMINFO)/P/PS 57 58$(ROOTTERMINFO)/P/PS: $(TMPSRC) 59 TERMINFO=$(ROOTTERMINFO) 2>&1 $(TIC) -v $(TMPSRC) > errs 60 @$(ECHO) "\n`2>/dev/null cat errs|wc -l` entries have been compiled\n" 61 @-( 2>/dev/null cat errs|grep -iv "^mkdir"|grep -iv "^create"|grep -iv "^link"|grep -vi $(TMPSRC)|grep -vi touch|grep -vi "working"; \ 62 if [ $$? -ne 0 ] ; \ 63 then \ 64 $(ECHO) "\tNo errors\n"; \ 65 else \ 66 $(ECHO) "\n\tErrors can be found in `pwd`/errs\n"; \ 67 fi \ 68 ) 69 70$(ROOTTERMINFO) : 71 $(INS.dir) 72 73clean clobber: 74 $(RM) $(TMPSRC) 75 76strip lint : 77 78