166f9d5cbSmlf#
266f9d5cbSmlf# CDDL HEADER START
366f9d5cbSmlf#
466f9d5cbSmlf# The contents of this file are subject to the terms of the
566f9d5cbSmlf# Common Development and Distribution License (the "License").
666f9d5cbSmlf# You may not use this file except in compliance with the License.
766f9d5cbSmlf#
866f9d5cbSmlf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
966f9d5cbSmlf# or http://www.opensolaris.org/os/licensing.
1066f9d5cbSmlf# See the License for the specific language governing permissions
1166f9d5cbSmlf# and limitations under the License.
1266f9d5cbSmlf#
1366f9d5cbSmlf# When distributing Covered Code, include this CDDL HEADER in each
1466f9d5cbSmlf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1566f9d5cbSmlf# If applicable, add the following below this CDDL HEADER, with the
1666f9d5cbSmlf# fields enclosed by brackets "[]" replaced with your own identifying
1766f9d5cbSmlf# information: Portions Copyright [yyyy] [name of copyright owner]
1866f9d5cbSmlf#
1966f9d5cbSmlf# CDDL HEADER END
2066f9d5cbSmlf#
2166f9d5cbSmlf#
22ed31198cSJohn Sonnenschein# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2366f9d5cbSmlf# Use is subject to license terms.
2466f9d5cbSmlf#
2566f9d5cbSmlf#
2666f9d5cbSmlf
2766f9d5cbSmlfinclude		../../Makefile.lib
2866f9d5cbSmlf
29e1b09d80SRichard Lowe$(INTEL_BLD)SUBDIRS =	$(MACH) $(BUILD64) $(MACH64)
3066f9d5cbSmlf
3166f9d5cbSmlfall :=		TARGET= all
3266f9d5cbSmlfclean :=	TARGET= clean
3366f9d5cbSmlfclobber :=	TARGET= clobber
3466f9d5cbSmlfdelete :=	TARGET= delete
3566f9d5cbSmlfinstall :=	TARGET= install
3666f9d5cbSmlf_msg :=		TARGET= _msg
37*241c90a0SRichard Lowepackage :=	TARGET= package
3866f9d5cbSmlf
39*241c90a0SRichard LoweTEXT_DOMAIN=	SUNW_OST_OSLIB
4066f9d5cbSmlfXGETFLAGS=	-a -x sata.xcl
4166f9d5cbSmlfPOFILE=		sata.po
4266f9d5cbSmlfPOFILES=	generic.po
4366f9d5cbSmlf
4466f9d5cbSmlf.KEEP_STATE:
4566f9d5cbSmlf
46*241c90a0SRichard Loweall clean delete install package: $(SUBDIRS)
47b6805bf7SGordon Rossclobber: $(SUBDIRS)
48b6805bf7SGordon Ross	$(RM) $(POFILE) $(POFILES)
4966f9d5cbSmlf
50*241c90a0SRichard Lowe
51f808c858Sraf$(SUBDIRS):	FRC
5266f9d5cbSmlf	@cd $@; pwd; $(MAKE) $(TARGET)
5366f9d5cbSmlf
5466f9d5cbSmlf_msg:	$(MSGDOMAIN) $(POFILE)
5566f9d5cbSmlf	$(RM) $(MSGDOMAIN)/$(POFILE)
5666f9d5cbSmlf	$(CP) $(POFILE) $(MSGDOMAIN)
5766f9d5cbSmlf
5866f9d5cbSmlf$(POFILE):	$(POFILES)
5966f9d5cbSmlf	$(RM) $@
6066f9d5cbSmlf	$(CAT) $(POFILES) > $@
6166f9d5cbSmlf
6266f9d5cbSmlf$(POFILES):
6366f9d5cbSmlf	$(RM) messages.po
6466f9d5cbSmlf	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext */*.[ch]`
6566f9d5cbSmlf	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
6666f9d5cbSmlf	$(RM) messages.po
6766f9d5cbSmlf
6866f9d5cbSmlfFRC:
69