xref: /titanic_50/usr/src/cmd/ssh/Makefile (revision 3c4993fb5a74112f361d71dab20997bdc749a7fb)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29include		../Makefile.cmd
30
31SUBDIRS= \
32	etc \
33	libopenbsd-compat \
34	libssh \
35	.WAIT \
36	ssh \
37	sshd \
38	scp \
39	ssh-add \
40	ssh-agent \
41	ssh-keygen \
42	ssh-keysign \
43	ssh-keyscan \
44	sftp-server \
45	sftp \
46	ssh-http-proxy-connect \
47	ssh-socks5-proxy-connect
48
49MSGFILE=ssh.po
50POFILE=_messages.po
51
52.KEEP_STATE:
53
54all :=          TARGET= all
55clean :=        TARGET= clean
56clobber :=      TARGET= clobber
57delete :=       TARGET= delete
58install :=      TARGET= install
59lint :=         TARGET= lint
60catalog :=      TARGET= catalog
61package :=      TARGET= package
62_msg :=		TARGET= _msg
63$(POFILE) :=	TARGET= $(POFILE)
64
65all clean clobber install lint $(POFILE): $(SUBDIRS)
66
67clobber: FRC
68	$(RM) THIRDPARTYLICENSE
69
70all install: THIRDPARTYLICENSE
71
72check: $(CHECKHDRS)
73
74# See Makefile.msg.targ for $(MSGFILE) update instructions
75_msg_manual:
76	$(RM) $(POFILE)
77	$(TOUCH) $(POFILE)
78	$(MAKE) $(POFILE)
79	$(SED) "/^domain/d" $(POFILE) > $(MSGFILE)
80
81_msg:
82	$(RM) $(MSGDOMAIN)/$(MSGFILE)
83	@# Uncomment when /bin/xgettext gets GNU extensions
84	@# See Makefile.msg.targ for $(MSGFILE) update instructions
85	@#$(MAKE) _msg_manual
86	$(CP) $(MSGFILE) $(MSGDOMAIN)
87
88$(SUBDIRS):     FRC
89	cd $@; pwd; $(MAKE) $(TARGET)
90
91# skip the summary; just include the actual license clauses.
92THIRDPARTYLICENSE: doc/LICENCE
93	$(SED) -n '/1)/,$$p' doc/LICENCE > $@
94
95FRC:
96