1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright 1996 Sun Microsystems, Inc. All rights reserved.
  22 # Use is subject to license terms.
  23 #
  24 # @(#)Makefile 1.7 06/12/12
  25 #
  26 
  27 include version.mk
  28 
  29 TOP             = ../../../../..
  30 PKG_TOP         = $(TOP)/Make
  31 PKG_LIB_TOP     = $(PKG_TOP)/lib
  32 I18N_LIBS       = bsd dmrxm dmrxs mksh vroot
  33 I18N_DIRS       = $(I18N_LIBS:%=$(PKG_LIB_TOP)/%/src)
  34 SRC             = .
  35 APPPATH         = .
  36 LIBNAME         = libmksdmsi18n
  37 TEXTDOMAIN      = $(LIBNAME)_$(VERSION)
  38 MSG_FILE        = $(TEXTDOMAIN).msg
  39 
  40 all clean:
  41 install: catalogs .WAIT i18n_install
  42 
  43 #
  44 # This is a hack until the top level makefiles for i18n/l10n message catalogs
  45 # are better organized and written.
  46 # This "catalogs" target was cp'ed from $(TOP)/rules/lib.mk
  47 #
  48 catalogs:
  49         $(GENMSG) -l $(SRC)/genmsg.project -o $(MSG_FILE) `find $(I18N_DIRS) \( -name '*.cc' -o -name '*.c' -o -name '*.y' \) -print | grep -v /SCCS/`
  50         rm -f *.cc.new
  51 
  52 include $(PKG_TOP)/prodver.mk
  53 include $(TOP)/rules/i18n-install.mk
  54