xref: /illumos-gate/usr/src/cmd/cmd-inet/Makefile (revision fea9cb91bd8e12d84069b4dab1268363668b4bff)
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#
23#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1989-2000 by Sun Microsystems, Inc.
26# All rights reserved.
27#
28#
29# include global definitions
30include	../Makefile.cmd
31
32SUBDIR1=	common
33SUBDIR2=	etc sbin usr.bin usr.sbin usr.lib usr.sadm
34SUBDIRS=	$(SUBDIR1) $(SUBDIR2)
35
36MSGSUBDIRS=	usr.bin usr.sbin usr.lib usr.sadm
37POFILES=        usr.bin/usr.bin.po usr.sbin/usr.sbin.po usr.sadm/usr.sadm.po
38POFILE=		cmd-inet.po
39
40all:=		TARGET= all
41install:=	TARGET= install
42clean:=		TARGET= clean
43clobber:=	TARGET= clobber
44lint:=		TARGET= lint
45_msg:=          TARGET= _msg
46
47.KEEP_STATE:
48
49.PARALLEL:	$(SUBDIRS)
50
51all install lint: $(SUBDIR1) .WAIT $(SUBDIR2)
52
53clean:		$(SUBDIRS)
54
55clobber:	$(SUBDIRS) local_clobber
56
57local_clobber:
58	$(RM) $(CLOBBERFILES)
59
60_msg: $(MSGSUBDIRS)
61	$(RM) $(POFILE)
62	cat $(POFILES) > $(POFILE)
63	$(RM)  $(MSGDOMAIN)/$(POFILE)
64	cp $(POFILE) $(MSGDOMAIN)
65
66$(SUBDIRS): FRC
67	@cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET)
68
69FRC:
70