Makefile revision b695575577bae0337af339d76949713bfe1c9013
210N/A#
210N/A# CDDL HEADER START
1276N/A#
210N/A# The contents of this file are subject to the terms of the
1549N/A# Common Development and Distribution License (the "License").
210N/A# You may not use this file except in compliance with the License.
210N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
210N/A
210N/Ainclude ../../Makefile.cmd
210N/A
210N/Acommon_DCNAMES = \
493N/A DISK \
210N/A FMD \
970N/A NXGE \
970N/A SUNOS \
970N/A PCI \
970N/A PCIEX \
970N/A ZFS \
970N/A SCA500 \
970N/A SCA1000 \
970N/A SENSOR \
210N/A TEST
1549N/A
210N/Ai386_DCNAMES = \
911N/A AMD \
1549N/A INTEL \
1549N/A GMCA
1549N/A
911N/Asparc_DCNAMES = \
210N/A SCF \
210N/A SUN4 \
210N/A SUN4U \
210N/A SUN4V
1276N/A
493N/ADCNAMES = \
210N/A $(common_DCNAMES) \
970N/A $($(MACH)_DCNAMES)
970N/A
970N/AALLDCNAMES = \
970N/A $(common_DCNAMES) \
210N/A $(sparc_DCNAMES) \
493N/A $(i386_DCNAMES)
210N/A
970N/ADCFILES = $(DCNAMES:%=%.dict)
970N/APOFILES = $(DCNAMES:%=%.po)
970N/AMOFILES = $(DCNAMES:%=%.mo)
210N/A
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)