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