summaryrefslogtreecommitdiff
path: root/usr/src/cmd/devfsadm
diff options
context:
space:
mode:
authorGordon Ross <gordon.w.ross@gmail.com>2016-10-31 21:33:00 -0400
committerGordon Ross <gordon.w.ross@gmail.com>2016-12-02 08:16:52 -0500
commit01d41e6dacd6f26957b16899a553d152ff46ec0c (patch)
tree415ddc79e0e62321492f8d88894e014910d9e12c /usr/src/cmd/devfsadm
parentc4d05ea67a6a84b9d56cd84ce2a6e1f572b51966 (diff)
downloadillumos-joyent-01d41e6dacd6f26957b16899a553d152ff46ec0c.tar.gz
7621 Ship devfsadm.h to allow externally-built devlinks modules
Reviewed by: Alexander Pyhalov <alp@rsu.ru> Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/cmd/devfsadm')
-rw-r--r--usr/src/cmd/devfsadm/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr/src/cmd/devfsadm/Makefile b/usr/src/cmd/devfsadm/Makefile
index e008e8fffb..7b2409d131 100644
--- a/usr/src/cmd/devfsadm/Makefile
+++ b/usr/src/cmd/devfsadm/Makefile
@@ -47,6 +47,11 @@ ROOTETCDEVFILES=$(ETCDEVFILES:%=$(ROOTETCDEV)/%)
$(ROOTETCDEV) := DIRMODE= 755
$(ROOTETCDEVFILES) := FILEMODE = 0644
+USRINCLUDEFILES=devfsadm.h
+ROOTUSRINCLUDE= $(ROOT)/usr/include
+ROOTUSRINCLUDEFILES=$(USRINCLUDEFILES:%=$(ROOTUSRINCLUDE)/%)
+$(ROOTUSRINCLUDEFILES) := FILEMODE = 0644
+
.KEEP_STATE:
all: $(SUBDIRS) $(ETCDEVFILES)
@@ -56,7 +61,8 @@ clean lint _msg: $(SUBDIRS)
clobber: $(SUBDIRS)
$(RM) $(ROOTETCDEVFILES)
-install: $(SUBDIRS) $(ROOTETCDEFAULTFILES) $(ROOTETCDEVFILES)
+install: $(SUBDIRS) $(ROOTETCDEFAULTFILES) $(ROOTETCDEVFILES) \
+ $(ROOTUSRINCLUDEFILES)
$(ROOTETCDEV):
$(INS.dir)
@@ -64,6 +70,9 @@ $(ROOTETCDEV):
$(ROOTETCDEV)/% : % $(ROOTETCDEV)
$(INS.file)
+$(ROOTUSRINCLUDE)/% : %
+ $(INS.file)
+
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)