Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
6743N/A#
6743N/A# CDDL HEADER START
6743N/A#
6743N/A# The contents of this file are subject to the terms of the
6743N/A# Common Development and Distribution License (the "License").
6743N/A# You may not use this file except in compliance with the License.
6743N/A#
6743N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6743N/A# or http://www.opensolaris.org/os/licensing.
6743N/A# See the License for the specific language governing permissions
6743N/A# and limitations under the License.
6743N/A#
6743N/A# When distributing Covered Code, include this CDDL HEADER in each
6743N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6743N/A# If applicable, add the following below this CDDL HEADER, with the
6743N/A# fields enclosed by brackets "[]" replaced with your own identifying
6743N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6743N/A#
6743N/A# CDDL HEADER END
6743N/A#
6743N/A
6743N/A#
6743N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
6743N/A# Use is subject to license terms.
6743N/A#
6743N/A# pkgdefs/SUNW0on/Makefile
6743N/A
6743N/Ainclude ../Makefile.com
6743N/A
6743N/AROOTDIR=$(ROOT)/usr/lib/locale/C
6743N/AROOTMSGDIR=$(ROOTDIR)/LC_MESSAGES
6743N/AROOTTIMEDIR=$(ROOTDIR)/LC_TIME
6743N/A
6743N/ASED= /usr/bin/sed
6743N/AFILEMODE= 644
6743N/A
6743N/APO_LABEL=' The following lines are contents of '
6743N/A
6743N/A.KEEP_STATE:
6743N/A
6743N/Aall: $(FILES)
6743N/Ainstall: all pkg
6743N/A
6743N/Ainclude ../Makefile.targ
6743N/A
6743N/A# The _msg target gathers the output of the top-level _msg target into
6743N/A# text-domain-specific message files under the ROOTMSGDIR for packaging.
6743N/A# It also processes time-message files in subdirectories of the LC_TIME
6743N/A# directory and copies or creates other files needed by this package.
6743N/A#
6891N/A_msg:
6891N/A [ -d $(ROOTMSGDIR) ] || mkdir -p $(ROOTMSGDIR)
6743N/A [ -d $(ROOTTIMEDIR) ] || mkdir -p $(ROOTTIMEDIR)
6743N/A [ -d $(MSGROOT) ] || $(ECHO) "need to build _msg in $(SRC)"
6743N/A (cd $(MSGROOT); \
6743N/A for d in SUNW*;\
6891N/A do \
6891N/A x="`$(ECHO) $$d/*.po`"; \
6891N/A y="$$d/"'*.po'; \
6891N/A $(RM) $(ROOTMSGDIR)/$$d.po; \
6743N/A if test "$$x" != "$$y"; then \
6743N/A for f in $$d/*.po; \
6743N/A do \
6743N/A $(ECHO) '#'$(PO_LABEL)$$f >> $(ROOTMSGDIR)/$$d.po; \
6743N/A $(SED) -e '/^# msg/d' -e '/^domain/d' $$f >> \
6743N/A $(ROOTMSGDIR)/$$d.po; \
6743N/A done; \
6743N/A $(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/$$d.po; \
6743N/A fi; \
6743N/A x="`$(ECHO) $$d/*.msg`"; \
6743N/A y="$$d/"'*.msg'; \
6743N/A if test "$$x" != "$$y"; then \
6743N/A for f in $$d/*.msg; \
6743N/A do \
6743N/A x="`basename $$f`"; \
6743N/A $(RM) $(ROOTMSGDIR)/$$x; \
6743N/A $(CP) $$f $(ROOTMSGDIR); \
6743N/A $(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/$$x; \
6743N/A done; \
6891N/A fi; \
done)
(cd $(MSGROOT)/LC_TIME; \
for d in SUNW*;\
do \
$(RM) $(ROOTTIMEDIR)/$$d.po; \
for f in $$d/*.po; \
do \
$(ECHO) '#'$(PO_LABEL)$$f >> $(ROOTTIMEDIR)/$$d.po; \
$(SED) -e '/^# msg/d' -e '/^domain/d' $$f >> \
$(ROOTTIMEDIR)/$$d.po; \
done; \
$(CHMOD) $(FILEMODE) $(ROOTTIMEDIR)/$$d.po; \
done)
-$(RM) $(ROOTMSGDIR)/magic
$(CP) $(SRC)/cmd/file/magic $(ROOTMSGDIR)
-$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/magic
-$(RM) $(ROOTMSGDIR)/priv_names
$(CP) $(ROOT)/etc/security/priv_names $(ROOTMSGDIR)
-$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/priv_names
-$(RM) $(ROOTMSGDIR)/mailx.help
$(CP) $(SRC)/cmd/mailx/misc/mailx.help $(ROOTMSGDIR)
-$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/mailx.help
-$(RM) $(ROOTMSGDIR)/more.help
$(CP) $(SRC)/cmd/more/more.help $(ROOTMSGDIR)
-$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/more.help
-$(RM) $(ROOTMSGDIR)/uxlibc.src
$(CP) uxlibc.src $(ROOTMSGDIR)
-$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/uxlibc.src
-$(RM) $(ROOTMSGDIR)/SUNW_OST_LINFO
($(ECHO) "yes"; $(ECHO) "no" ) > $(ROOTMSGDIR)/SUNW_OST_LINFO
-$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/SUNW_OST_LINFO