dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / devfsadm / Makefile
blob76703e630b745ef48d1a3c2864201c3bef27dad3
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
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
55 .KEEP_STATE:
57 all: $(SUBDIRS) $(ETCDEVFILES)
59 clean _msg: $(SUBDIRS)
61 clobber: $(SUBDIRS)
62 $(RM) $(ROOTETCDEVFILES)
64 install_h: $(ROOTUSRINCLUDEFILES)
66 install: $(SUBDIRS) install_h $(ROOTETCDEFAULTFILES) $(ROOTETCDEVFILES)
69 $(ROOTETCDEV):
70 $(INS.dir)
72 $(ROOTETCDEV)/% : % $(ROOTETCDEV)
73 $(INS.file)
75 $(ROOTUSRINCLUDE)/% : %
76 $(INS.file)
78 $(SUBDIRS): FRC
79 @cd $@; pwd; $(MAKE) $(TARGET)
81 FRC: