xref: /titanic_51/usr/src/cmd/devfsadm/Makefile (revision 853389e344087efe23a5cc688693e5301a1cb90d)
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 2007 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27# cmd/devfsadm/Makefile
28#
29
30DEFAULTFILES = devfsadm.dfl
31
32ETCDEVFILES=reserved_devnames
33
34include ../Makefile.cmd
35
36#
37# One for each ISA.
38#
39SUBDIRS =	$(MACH)
40
41all	:=	TARGET= all
42install	:=	TARGET= install
43clean	:=	TARGET= clean
44clobber	:=	TARGET= clobber
45_msg	:=	TARGET= _msg
46lint	:=	TARGET= lint
47
48ROOTETCDEV=	$(ROOTETC)/dev
49ROOTETCDEVFILES=$(ETCDEVFILES:%=$(ROOTETCDEV)/%)
50$(ROOTETCDEV) :=	DIRMODE=	755
51$(ROOTETCDEV) :=	OWNER=          root
52$(ROOTETCDEV) :=	GROUP=          sys
53$(ROOTETCDEVFILES) :=	OWNER = root
54$(ROOTETCDEVFILES) :=	GROUP = sys
55$(ROOTETCDEVFILES) :=	FILEMODE = 0644
56
57.KEEP_STATE:
58
59all:	$(SUBDIRS) $(ETCDEVFILES)
60
61clean lint _msg:	$(SUBDIRS)
62
63clobber: $(SUBDIRS)
64	$(RM) $(ROOTETCDEVFILES)
65
66install: $(SUBDIRS) $(ROOTETCDEFAULTFILES) $(ROOTETCDEVFILES)
67
68$(ROOTETCDEV):
69	$(INS.dir)
70
71$(ROOTETCDEV)/% : % $(ROOTETCDEV)
72	$(INS.file)
73
74$(SUBDIRS):	FRC
75	@cd $@; pwd; $(MAKE) $(TARGET)
76
77FRC:
78