8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / devfsadm / Makefile
blobaec7a8ec8b0f1a3ae0caf794e897fb102772c684
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
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
35 # One for each ISA.
37 SUBDIRS = $(MACH)
39 all := TARGET= all
40 install := TARGET= install
41 clean := TARGET= clean
42 clobber := TARGET= clobber
43 _msg := TARGET= _msg
44 lint := TARGET= lint
46 ROOTETCDEV= $(ROOTETC)/dev
47 ROOTETCDEVFILES=$(ETCDEVFILES:%=$(ROOTETCDEV)/%)
48 $(ROOTETCDEV) := DIRMODE= 755
49 $(ROOTETCDEVFILES) := FILEMODE = 0644
51 USRINCLUDEFILES=devfsadm.h
52 ROOTUSRINCLUDE= $(ROOT)/usr/include
53 ROOTUSRINCLUDEFILES=$(USRINCLUDEFILES:%=$(ROOTUSRINCLUDE)/%)
54 $(ROOTUSRINCLUDEFILES) := FILEMODE = 0644
56 .KEEP_STATE:
58 all: $(SUBDIRS) $(ETCDEVFILES)
60 clean lint _msg: $(SUBDIRS)
62 clobber: $(SUBDIRS)
63 $(RM) $(ROOTETCDEVFILES)
65 install_h: $(ROOTUSRINCLUDEFILES)
67 install: $(SUBDIRS) install_h $(ROOTETCDEFAULTFILES) $(ROOTETCDEVFILES)
70 $(ROOTETCDEV):
71 $(INS.dir)
73 $(ROOTETCDEV)/% : % $(ROOTETCDEV)
74 $(INS.file)
76 $(ROOTUSRINCLUDE)/% : %
77 $(INS.file)
79 $(SUBDIRS): FRC
80 @cd $@; pwd; $(MAKE) $(TARGET)
82 FRC: