xref: /titanic_50/usr/src/cmd/fs.d/ufs/Makefile (revision 20c794b39650d115e17a15983b6b82e46238cf45)
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#ident	"%Z%%M%	%I%	%E% SMI"
23#
24# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#  /usr/src/cmd/lib/fs/ufs is the directory of all ufs specific commands
28#  whose executable reside in $(INSDIR1) and $(INSDIR2).
29#
30#	NOTE:   ufsdump and ufsrestore have been merged into hsmdump and
31#		hsmrestore.  The source is located in usr/src/cmd/backup.
32#		When the Online Backup producted is no longer supported
33#		they should be moved here again.
34#
35
36
37SUBDIR1=	clri edquota ff fsck fsckall fsdb fsirand fstyp \
38		labelit lockfs ncheck quot quota quotacheck quotaon \
39		repquota tunefs
40SUBDIR2= 	df fssnap mkfs mount newfs volcopy
41ROLLDIR=	roll_log
42SUBDIRS=	$(ROLLDIR) $(SUBDIR1) $(SUBDIR2)
43
44all:=		TARGET= all
45install:=	TARGET= install
46clean:=		TARGET= clean
47clobber:=	TARGET= clobber
48lint:=		TARGET= lint
49catalog:=       TARGET= catalog
50
51# for messaging catalog
52#
53POFILE= ufs.po
54POFILES= $(SUBDIR2:%=%/%.po)
55
56.KEEP_STATE:
57
58.PARALLEL:	$(SUBDIRS)
59
60all install:	$(ROLLDIR) .WAIT $(SUBDIR1) $(SUBDIR2)
61
62catalog:        $(POFILE)
63
64$(POFILE):      $(SUBDIR2)
65	$(RM) 	$@
66	cat     $(POFILES)      > $@
67
68clean clobber lint: $(SUBDIRS)
69
70$(SUBDIRS): FRC
71	@cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET)
72
73FRC:
74