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.
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.
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]
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
23 # Copyright 2016 Joyent, Inc.
25 # cmd/devfsadm/Makefile
28 DEFAULTFILES
= devfsadm.dfl
30 ETCDEVFILES
=reserved_devnames
32 include ..
/Makefile.cmd
40 install := TARGET
= install
41 clean := TARGET
= clean
42 clobber := TARGET
= clobber
45 ROOTETCDEV
= $(ROOTETC
)/dev
46 ROOTETCDEVFILES
=$(ETCDEVFILES
:%=$(ROOTETCDEV
)/%)
47 $(ROOTETCDEV
) := DIRMODE
= 755
48 $(ROOTETCDEVFILES
) := FILEMODE
= 0644
50 USRINCLUDEFILES
=devfsadm.h
51 ROOTUSRINCLUDE
= $(ROOT
)/usr
/include
52 ROOTUSRINCLUDEFILES
=$(USRINCLUDEFILES
:%=$(ROOTUSRINCLUDE
)/%)
53 $(ROOTUSRINCLUDEFILES
) := FILEMODE
= 0444
57 all: $(SUBDIRS
) $(ETCDEVFILES
)
59 clean _msg
: $(SUBDIRS
)
62 $(RM
) $(ROOTETCDEVFILES
)
64 install_h
: $(ROOTUSRINCLUDEFILES
)
66 install: $(SUBDIRS
) install_h
$(ROOTETCDEFAULTFILES
) $(ROOTETCDEVFILES
)
72 $(ROOTETCDEV
)/% : % $(ROOTETCDEV
)
75 $(ROOTUSRINCLUDE
)/% : %
79 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)