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
29*e1b09d80SRichard Lowe$(INTEL_BLD)SUBDIRS =	$(MACH) $(BUILD64) $(MACH64)
3066f9d5cbSmlf
3166f9d5cbSmlfall :=		TARGET= all
3266f9d5cbSmlfclean :=	TARGET= clean
3366f9d5cbSmlfclobber :=	TARGET= clobber
3466f9d5cbSmlfdelete :=	TARGET= delete
3566f9d5cbSmlfinstall :=	TARGET= install
3666f9d5cbSmlflint := 	TARGET= lint
3766f9d5cbSmlf_msg :=		TARGET= _msg
3866f9d5cbSmlfpackage := 	TARGET= package
3966f9d5cbSmlf
4066f9d5cbSmlfTEXT_DOMAIN= 	SUNW_OST_OSLIB
4166f9d5cbSmlfXGETFLAGS=	-a -x sata.xcl
4266f9d5cbSmlfPOFILE=		sata.po
4366f9d5cbSmlfPOFILES=	generic.po
4466f9d5cbSmlf
4566f9d5cbSmlfSED=	sed
4666f9d5cbSmlfGREP=	grep
4766f9d5cbSmlf
4866f9d5cbSmlf.KEEP_STATE:
4966f9d5cbSmlf
50b6805bf7SGordon Rossall clean delete install lint package: $(SUBDIRS)
51b6805bf7SGordon Rossclobber: $(SUBDIRS)
52b6805bf7SGordon Ross	$(RM) $(POFILE) $(POFILES)
5366f9d5cbSmlf
54f808c858Sraf$(SUBDIRS):	FRC
5566f9d5cbSmlf	@cd $@; pwd; $(MAKE) $(TARGET)
5666f9d5cbSmlf
5766f9d5cbSmlf_msg:	$(MSGDOMAIN) $(POFILE)
5866f9d5cbSmlf	$(RM) $(MSGDOMAIN)/$(POFILE)
5966f9d5cbSmlf	$(CP) $(POFILE) $(MSGDOMAIN)
6066f9d5cbSmlf
6166f9d5cbSmlf$(POFILE):	$(POFILES)
6266f9d5cbSmlf	$(RM) $@
6366f9d5cbSmlf	$(CAT) $(POFILES) > $@
6466f9d5cbSmlf
6566f9d5cbSmlf$(POFILES):
6666f9d5cbSmlf	$(RM) messages.po
6766f9d5cbSmlf	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext */*.[ch]`
6866f9d5cbSmlf	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
6966f9d5cbSmlf	$(RM) messages.po
7066f9d5cbSmlf
7166f9d5cbSmlfFRC:
72