1a61ed2ceSHans Rosenfeld#
2a61ed2ceSHans Rosenfeld# CDDL HEADER START
3a61ed2ceSHans Rosenfeld#
4a61ed2ceSHans Rosenfeld# The contents of this file are subject to the terms of the
5a61ed2ceSHans Rosenfeld# Common Development and Distribution License (the "License").
6a61ed2ceSHans Rosenfeld# You may not use this file except in compliance with the License.
7a61ed2ceSHans Rosenfeld#
8a61ed2ceSHans Rosenfeld# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9a61ed2ceSHans Rosenfeld# or http://www.opensolaris.org/os/licensing.
10a61ed2ceSHans Rosenfeld# See the License for the specific language governing permissions
11a61ed2ceSHans Rosenfeld# and limitations under the License.
12a61ed2ceSHans Rosenfeld#
13a61ed2ceSHans Rosenfeld# When distributing Covered Code, include this CDDL HEADER in each
14a61ed2ceSHans Rosenfeld# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15a61ed2ceSHans Rosenfeld# If applicable, add the following below this CDDL HEADER, with the
16a61ed2ceSHans Rosenfeld# fields enclosed by brackets "[]" replaced with your own identifying
17a61ed2ceSHans Rosenfeld# information: Portions Copyright [yyyy] [name of copyright owner]
18a61ed2ceSHans Rosenfeld#
19a61ed2ceSHans Rosenfeld# CDDL HEADER END
20a61ed2ceSHans Rosenfeld#
21a61ed2ceSHans Rosenfeld#
22a61ed2ceSHans Rosenfeld# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23a61ed2ceSHans Rosenfeld# Use is subject to license terms.
24a61ed2ceSHans Rosenfeld#
25a61ed2ceSHans Rosenfeld# Copyright 2019, Joyent, Inc.
26a61ed2ceSHans Rosenfeld#
27a61ed2ceSHans Rosenfeld
28a61ed2ceSHans Rosenfeldinclude		../../Makefile.lib
29a61ed2ceSHans Rosenfeld
30*60bd1e66SToomas SoomeSUBDIRS =	$(MACH) $(BUILD64) $(MACH64)
31a61ed2ceSHans Rosenfeld
32a61ed2ceSHans Rosenfeldall :=		TARGET= all
33a61ed2ceSHans Rosenfeldclean :=	TARGET= clean
34a61ed2ceSHans Rosenfeldclobber :=	TARGET= clobber
35a61ed2ceSHans Rosenfelddelete :=	TARGET= delete
36a61ed2ceSHans Rosenfeldinstall :=	TARGET= install
37a61ed2ceSHans Rosenfeld_msg :=		TARGET= _msg
38a61ed2ceSHans Rosenfeldpackage :=	TARGET= package
39a61ed2ceSHans Rosenfeld
40a61ed2ceSHans RosenfeldSED=	sed
41a61ed2ceSHans RosenfeldGREP=	grep
42a61ed2ceSHans Rosenfeld
43a61ed2ceSHans Rosenfeld.KEEP_STATE:
44a61ed2ceSHans Rosenfeld
45a61ed2ceSHans Rosenfeldall clean delete install package: $(SUBDIRS)
46a61ed2ceSHans Rosenfeldclobber: $(SUBDIRS)
47a61ed2ceSHans Rosenfeld	$(RM) $(POFILE) $(POFILES)
48a61ed2ceSHans Rosenfeld
49a61ed2ceSHans Rosenfeld$(SUBDIRS):	FRC
50a61ed2ceSHans Rosenfeld	@cd $@; pwd; $(MAKE) $(TARGET)
51a61ed2ceSHans Rosenfeld
52a61ed2ceSHans Rosenfeld#
53a61ed2ceSHans Rosenfeld# We don't build any gettext libraries here
54a61ed2ceSHans Rosenfeld#
55a61ed2ceSHans Rosenfeld_msg:
56a61ed2ceSHans Rosenfeld
57a61ed2ceSHans Rosenfeld$(POFILE):	$(POFILES)
58a61ed2ceSHans Rosenfeld	$(RM) $@
59a61ed2ceSHans Rosenfeld	$(CAT) $(POFILES) > $@
60a61ed2ceSHans Rosenfeld
61a61ed2ceSHans Rosenfeld$(POFILES):
62a61ed2ceSHans Rosenfeld	$(RM) messages.po
63a61ed2ceSHans Rosenfeld	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext */*.[ch]`
64a61ed2ceSHans Rosenfeld	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
65a61ed2ceSHans Rosenfeld	$(RM) messages.po
66a61ed2ceSHans Rosenfeld
67a61ed2ceSHans RosenfeldFRC: