17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 525d276b7Sas145665# Common Development and Distribution License (the "License"). 625d276b7Sas145665# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 2124fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2225d276b7Sas145665# Use is subject to license terms. 237c478bd9Sstevel@tonic-gate# 24*13cfc972SYuri Pankov# Copyright 2011 Nexenta Systems, Inc. All rights reserved. 25*13cfc972SYuri Pankov# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gatePROG= terminfo 28*13cfc972SYuri PankovTABSETSRC= 3101 beehive hds hds3 std stdcrt teleray vt100 wyse-adds xerox1720 29*13cfc972SYuri PankovTERMCAPSRC= termcap.src 30*13cfc972SYuri PankovTERMINFOSRC= terminfo.src 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateFILEMODE= 0644 35*13cfc972SYuri Pankov 36*13cfc972SYuri PankovTIC= /usr/bin/tic 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateROOTSHARELIBDIR = $(ROOT)/usr/share/lib 397c478bd9Sstevel@tonic-gateROOTTABDIR = $(ROOTSHARELIBDIR)/tabset 407c478bd9Sstevel@tonic-gateROOTTERMDIR = $(ROOTSHARELIBDIR)/terminfo 417c478bd9Sstevel@tonic-gateDIRS = $(ROOTTERMDIR) $(ROOTTABDIR) 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateROOTSYMLINK = $(ROOTETC)/termcap 447c478bd9Sstevel@tonic-gateRELROOTETC = ../usr/share/lib 457c478bd9Sstevel@tonic-gateROOTLIBSYMLINK = $(ROOTLIB)/tabset 467c478bd9Sstevel@tonic-gateRELROOTLIB = ../share/lib 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gateROOTTABSET = $(TABSETSRC:%=$(ROOTTABDIR)/%) 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate$(ROOTTABDIR)/%: tabset/% 517c478bd9Sstevel@tonic-gate $(INS.file) 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate.KEEP_STATE: 547c478bd9Sstevel@tonic-gate 55*13cfc972SYuri Pankovall: $(TERMCAPSRC) $(TERMINFOSRC) 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate$(DIRS): 587c478bd9Sstevel@tonic-gate $(INS.dir) 597c478bd9Sstevel@tonic-gate 60*13cfc972SYuri Pankov$(ROOTTERMDIR)/s/sun: $(TERMINFOSRC) 61*13cfc972SYuri Pankov TERMINFO=$(ROOTTERMDIR) $(TIC) $(TERMINFOSRC) 2>/dev/null 627c478bd9Sstevel@tonic-gate 63*13cfc972SYuri Pankov$(ROOTSHARELIBDIR)/termcap: 64*13cfc972SYuri Pankov $(EGREP) -v '^(#|$$)' $(TERMCAPSRC) > $@ 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gateinstall: all $(ROOTTERMDIR) $(ROOTTERMDIR)/s/sun $(ROOTTABDIR) \ 677c478bd9Sstevel@tonic-gate $(ROOTTABSET) $(ROOTSHARELIBDIR)/termcap $(ROOTSYMLINK) \ 687c478bd9Sstevel@tonic-gate $(ROOTLIBSYMLINK) 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate$(ROOTSYMLINK): 71*13cfc972SYuri Pankov $(RM) $@; $(SYMLINK) $(RELROOTETC)/termcap $@ 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate$(ROOTLIBSYMLINK): 74*13cfc972SYuri Pankov $(RM) $@; $(SYMLINK) $(RELROOTLIB)/tabset $@ 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gatelint: 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gateclean: 797c478bd9Sstevel@tonic-gate 80*13cfc972SYuri Pankovclobber: 81