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 57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate# with the License. 87c478bd9Sstevel@tonic-gate# 97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate# and limitations under the License. 137c478bd9Sstevel@tonic-gate# 147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate# 207c478bd9Sstevel@tonic-gate# CDDL HEADER END 217c478bd9Sstevel@tonic-gate# 227c478bd9Sstevel@tonic-gate# 23*7aec1d6eScindi# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gatecommon_DCNAMES = \ 317c478bd9Sstevel@tonic-gate FMD \ 327c478bd9Sstevel@tonic-gate SMF \ 337c478bd9Sstevel@tonic-gate SUNOS \ 34fa9e4066Sahrens PCI \ 3588f8b78aSgm89044 ZFS \ 3688f8b78aSgm89044 SCA500 \ 3788f8b78aSgm89044 SCA1000 387c478bd9Sstevel@tonic-gate 39*7aec1d6eScindii386_DCNAMES = \ 40*7aec1d6eScindi AMD 41*7aec1d6eScindi 427c478bd9Sstevel@tonic-gatesparc_DCNAMES = \ 436dfee483Stsien SUN4 \ 440890ae4eSvn83148 SUN4U \ 456dfee483Stsien SUN4V 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateDCNAMES = \ 487c478bd9Sstevel@tonic-gate $(common_DCNAMES) \ 497c478bd9Sstevel@tonic-gate $($(MACH)_DCNAMES) 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateALLDCNAMES = \ 527c478bd9Sstevel@tonic-gate $(common_DCNAMES) \ 53*7aec1d6eScindi $(sparc_DCNAMES) \ 54*7aec1d6eScindi $(i386_DCNAMES) 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gateDCFILES = $(DCNAMES:%=%.dict) 577c478bd9Sstevel@tonic-gatePOFILES = $(DCNAMES:%=%.po) 587c478bd9Sstevel@tonic-gateMOFILES = $(DCNAMES:%=%.mo) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateROOTDCDIR = $(ROOTLIB)/fm/dict 617c478bd9Sstevel@tonic-gateROOTLCDIR = $(ROOTLIB)/locale/C/LC_MESSAGES 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gateROOTDCFILES = $(DCNAMES:%=$(ROOTDCDIR)/%.dict) 647c478bd9Sstevel@tonic-gateROOTPOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.po) 657c478bd9Sstevel@tonic-gateROOTMOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.mo) 667c478bd9Sstevel@tonic-gateROOTALLPOFILES = $(ALLDCNAMES:%=$(ROOTLCDIR)/%.po) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateFILEMODE = 0444 697c478bd9Sstevel@tonic-gate$(ROOTALLPOFILES) := FILEMODE = 0644 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gateDICTCK = ../scripts/dictck 727c478bd9Sstevel@tonic-gateDICTCKFLAGS = -b ../scripts/buildcode 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gateall: $(MOFILES) 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate_msg: $(ROOTALLPOFILES) 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate$(ROOTDCDIR): 797c478bd9Sstevel@tonic-gate $(INS.dir) 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate$(ROOTLIB)/locale: 827c478bd9Sstevel@tonic-gate $(INS.dir) 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate$(ROOTLIB)/locale/C: $(ROOTLIB)/locale 857c478bd9Sstevel@tonic-gate $(INS.dir) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate$(ROOTLCDIR): $(ROOTLIB)/locale/C 887c478bd9Sstevel@tonic-gate $(INS.dir) 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate$(ROOTDCDIR)/%: % 917c478bd9Sstevel@tonic-gate $(INS.file) 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate$(ROOTLCDIR)/%: % 947c478bd9Sstevel@tonic-gate $(INS.file) 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gate%.mo: %.po 977c478bd9Sstevel@tonic-gate msgfmt -s -o $@ $< 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gatelint: 1007c478bd9Sstevel@tonic-gate @for name in $(DCNAMES); do\ 1017c478bd9Sstevel@tonic-gate $(DICTCK) $(DICTCKFLAGS) $$name.dict $$name.po;\ 1027c478bd9Sstevel@tonic-gate done 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gateclean install_h lint: 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gateclobber: 1077c478bd9Sstevel@tonic-gate $(RM) $(MOFILES) 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gateinstall: all $(ROOTDCDIR) $(ROOTLCDIR) \ 1107c478bd9Sstevel@tonic-gate $(ROOTDCFILES) $(ROOTALLPOFILES) $(ROOTMOFILES) 111