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