Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
1123N/A#
1123N/A# CDDL HEADER START
1339N/A#
1123N/A# The contents of this file are subject to the terms of the
1406N/A# Common Development and Distribution License, Version 1.0 only
1123N/A# (the "License"). You may not use this file except in compliance
1123N/A# with the License.
1123N/A#
1123N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1123N/A# or http://www.opensolaris.org/os/licensing.
1123N/A# See the License for the specific language governing permissions
1123N/A# and limitations under the License.
1123N/A#
1123N/A# When distributing Covered Code, include this CDDL HEADER in each
1123N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1123N/A# If applicable, add the following below this CDDL HEADER, with the
1123N/A# fields enclosed by brackets "[]" replaced with your own identifying
1123N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1123N/A#
1123N/A# CDDL HEADER END
1123N/A#
1123N/A#
1123N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
1123N/A# Use is subject to license terms.
1123N/A#
1123N/A#ident "%Z%%M% %I% %E% SMI"
1123N/A
1123N/Ainclude ../../Makefile.cmd
1123N/A
1123N/Acommon_DCNAMES = \
1123N/A FMD \
1123N/A SMF \
1123N/A SUNOS \
1123N/A PCI
1351N/A
1123N/Asparc_DCNAMES = \
1123N/A SUN4U
1351N/A
1351N/ADCNAMES = \
1123N/A $(common_DCNAMES) \
1123N/A $($(MACH)_DCNAMES)
1123N/A
1123N/AALLDCNAMES = \
1123N/A $(common_DCNAMES) \
1339N/A $(sparc_DCNAMES)
1123N/A
1123N/ADCFILES = $(DCNAMES:%=%.dict)
1406N/APOFILES = $(DCNAMES:%=%.po)
1360N/AMOFILES = $(DCNAMES:%=%.mo)
1123N/A
1123N/AROOTDCDIR = $(ROOTLIB)/fm/dict
1123N/AROOTLCDIR = $(ROOTLIB)/locale/C/LC_MESSAGES
1123N/A
1123N/AROOTDCFILES = $(DCNAMES:%=$(ROOTDCDIR)/%.dict)
1123N/AROOTPOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.po)
1123N/AROOTMOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.mo)
1123N/AROOTALLPOFILES = $(ALLDCNAMES:%=$(ROOTLCDIR)/%.po)
1123N/A
1123N/AFILEMODE = 0444
1123N/A$(ROOTALLPOFILES) := FILEMODE = 0644
1446N/A
1446N/ADICTCK = ../scripts/dictck
1446N/ADICTCKFLAGS = -b ../scripts/buildcode
1123N/A
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)