13db86aabSstevel#
23db86aabSstevel# CDDL HEADER START
33db86aabSstevel#
43db86aabSstevel# The contents of this file are subject to the terms of the
5ed31198cSJohn Sonnenschein# Common Development and Distribution License (the "License").
6ed31198cSJohn Sonnenschein# You may not use this file except in compliance with the License.
73db86aabSstevel#
83db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93db86aabSstevel# or http://www.opensolaris.org/os/licensing.
103db86aabSstevel# See the License for the specific language governing permissions
113db86aabSstevel# and limitations under the License.
123db86aabSstevel#
133db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each
143db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the
163db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying
173db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner]
183db86aabSstevel#
193db86aabSstevel# CDDL HEADER END
203db86aabSstevel#
21ed31198cSJohn Sonnenschein
223db86aabSstevel#
23ed31198cSJohn Sonnenschein# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
243db86aabSstevel# Use is subject to license terms.
253db86aabSstevel#
263db86aabSstevel# lib/cfgadm_plugins/sysctrl/Makefile
273db86aabSstevel
283db86aabSstevelinclude		$(SRC)/Makefile.master
293db86aabSstevel
30b6805bf7SGordon RossSUBDIRS=
31b6805bf7SGordon Ross$(SPARC_BLD)SUBDIRS=	$(MACH) $(BUILD64) $(MACH64)
323db86aabSstevel
333db86aabSstevelall :=		TARGET= all
343db86aabSstevelclean :=	TARGET= clean
353db86aabSstevelclobber :=	TARGET= clobber
363db86aabSsteveldelete :=	TARGET= delete
373db86aabSstevelinstall :=	TARGET= install
383db86aabSstevel_msg :=		TARGET= _msg
393db86aabSstevelpackage :=	TARGET= package
403db86aabSstevel
413db86aabSstevelTEXT_DOMAIN=	SUNW_OST_OSLIB
423db86aabSstevelXGETFLAGS=	-a -x sysctrl.xcl
433db86aabSstevelPOFILE=		sysctrl.po
443db86aabSstevelPOFILES=	generic.po
453db86aabSstevel
463db86aabSstevel.KEEP_STATE:
473db86aabSstevel
48*241c90a0SRichard Loweall clean delete install package: $(SUBDIRS)
49b6805bf7SGordon Rossclobber: $(SUBDIRS)
50b6805bf7SGordon Ross	$(RM) $(POFILE) $(POFILES)
513db86aabSstevel
523db86aabSstevel$(MACH) $(MACH64):	FRC
533db86aabSstevel	@cd $@; pwd; $(MAKE) $(TARGET)
543db86aabSstevel
553db86aabSstevel_msg:	$(MSGDOMAIN) $(POFILE)
563db86aabSstevel	$(RM) $(MSGDOMAIN)/$(POFILE)
573db86aabSstevel	$(CP) $(POFILE) $(MSGDOMAIN)
583db86aabSstevel
593db86aabSstevel$(POFILE):	$(POFILES)
603db86aabSstevel	$(RM) $@
613db86aabSstevel	$(CAT) $(POFILES) > $@
623db86aabSstevel
633db86aabSstevel$(POFILES):
643db86aabSstevel	$(RM) messages.po
653db86aabSstevel	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext */*.[ch]`
663db86aabSstevel	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
673db86aabSstevel	$(RM) messages.po
683db86aabSstevel
693db86aabSstevelFRC:
70