xref: /titanic_44/usr/src/cmd/ssh/Makefile.msg.targ (revision 5151fb1220e0ceafdc172203863c73da4285c170)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27### SSH needs xgettext GNU extensions, primarily the --keyword= / -k
28### option.  Until the Solaris xgettext is so extended SUNWssh's ssh.po
29### file is built manually and is checked in to SCCS.
30###
31### To build ssh.po manually using the GNU xgettext command you can:
32###
33### sccs edit ssh.po
34### make _msg_manual XGETTEXT=/opt/sfw/bin/xgettext
35### <edit _messages.po, remove header, add copyright, ident keywords>
36### mv _messages.po ssh.po
37### sccs delget ssh.po
38###
39### NOTE: Tools from /opt/sfw/ may not be used in the build process; do
40###       NOT change the _msg target to do this.
41###
42POFILE = _messages.po
43XGETFLAGS = -o $(POFILE_DIR)/$(POFILE) --foreign-user --strict -j -n -E --width=72 \
44	    --keyword=fatal \
45	    --keyword=error \
46	    --keyword=verbose \
47	    --keyword=packet_send_debug \
48	    --keyword=packet_disconnect
49
50$(POFILE):
51	$(RM) $@
52	$(COMPILE.cpp) $(SRCS)  > $(POFILE).i.c
53	$(XGETTEXT) $(XGETFLAGS)        $(POFILE).i.c
54	$(RM) $(POFILE).i.c
55
56