Makefile revision ee5416c9d7e449233197d5d20bc6b81e4ff091b2
7035N/A#
7035N/A# CDDL HEADER START
7035N/A#
7035N/A# The contents of this file are subject to the terms of the
7035N/A# Common Development and Distribution License (the "License").
7035N/A# You may not use this file except in compliance with the License.
7035N/A#
7035N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7035N/A# or http://www.opensolaris.org/os/licensing.
7035N/A# See the License for the specific language governing permissions
7035N/A# and limitations under the License.
7035N/A#
7035N/A# When distributing Covered Code, include this CDDL HEADER in each
7035N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7035N/A# If applicable, add the following below this CDDL HEADER, with the
7035N/A# fields enclosed by brackets "[]" replaced with your own identifying
7035N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7035N/A#
7035N/A# CDDL HEADER END
7035N/A#
7035N/A#
7035N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
7035N/A# Use is subject to license terms.
7035N/A#
7035N/A#ident "%Z%%M% %I% %E% SMI"
7035N/A
7035N/Ainclude ../../Makefile.cmd
7035N/A
7035N/Acommon_DCNAMES = \
7035N/A DISK \
7035N/A FMD \
7035N/A NXGE \
7035N/A SUNOS \
7035N/A PCI \
7035N/A PCIEX \
7035N/A ZFS \
7035N/A SCA500 \
7035N/A SCA1000
7035N/A
7035N/Ai386_DCNAMES = \
7035N/A AMD
7035N/A
7035N/Asparc_DCNAMES = \
7035N/A SCF \
7035N/A SUN4 \
SUN4U \
SUN4V
DCNAMES = \
$(common_DCNAMES) \
$($(MACH)_DCNAMES)
ALLDCNAMES = \
$(common_DCNAMES) \
$(sparc_DCNAMES) \
$(i386_DCNAMES)
DCFILES = $(DCNAMES:%=%.dict)
POFILES = $(DCNAMES:%=%.po)
MOFILES = $(DCNAMES:%=%.mo)
ROOTDCDIR = $(ROOTLIB)/fm/dict
ROOTLCDIR = $(ROOTLIB)/locale/C/LC_MESSAGES
ROOTDCFILES = $(DCNAMES:%=$(ROOTDCDIR)/%.dict)
ROOTPOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.po)
ROOTMOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.mo)
ROOTALLPOFILES = $(ALLDCNAMES:%=$(ROOTLCDIR)/%.po)
FILEMODE = 0444
$(ROOTALLPOFILES) := FILEMODE = 0644
DICTCK = ../scripts/dictck
DICTCKFLAGS = -b ../scripts/buildcode
all: $(MOFILES)
_msg: $(ROOTALLPOFILES)
$(ROOTDCDIR):
$(INS.dir)
$(ROOTLIB)/locale:
$(INS.dir)
$(ROOTLIB)/locale/C: $(ROOTLIB)/locale
$(INS.dir)
$(ROOTLCDIR): $(ROOTLIB)/locale/C
$(INS.dir)
$(ROOTDCDIR)/%: %
$(INS.file)
$(ROOTLCDIR)/%: %
$(INS.file)
%.mo: %.po
msgfmt -s -o $@ $<
lint:
@for name in $(DCNAMES); do\
$(DICTCK) $(DICTCKFLAGS) $$name.dict $$name.po;\
done
clean install_h lint:
clobber:
$(RM) $(MOFILES)
install: all $(ROOTDCDIR) $(ROOTLCDIR) \
$(ROOTDCFILES) $(ROOTALLPOFILES) $(ROOTMOFILES)