Reduce duplicated logic from r291744.
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
ebf5587eca
commit
ec4047ade2
@ -53,3 +53,8 @@ KERN_OPTS+= DEV_EISA
|
||||
KERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h | awk '{print $$2;}' | sort -u
|
||||
.export KERN_OPTS
|
||||
.endif
|
||||
|
||||
.if !defined(__MPATH)
|
||||
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
|
||||
.export __MPATH
|
||||
.endif
|
||||
|
@ -386,11 +386,7 @@ vnode_if_typedef.h:
|
||||
.endif
|
||||
|
||||
# Build _if.[ch] from _if.m, and clean them when we're done.
|
||||
# This is duplicated in sys/modules/Makefile.
|
||||
.if !defined(__MPATH)
|
||||
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
|
||||
.export __MPATH
|
||||
.endif
|
||||
# __MPATH defined in config.mk
|
||||
_MFILES=${__MPATH:T:O}
|
||||
_MPATH=${__MPATH:H:O:u}
|
||||
.PATH.m: ${_MPATH}
|
||||
|
@ -775,12 +775,6 @@ afterinstall:
|
||||
|
||||
.include "${SYSDIR}/conf/config.mk"
|
||||
|
||||
# Use sys/conf/kmod.mk's MPATH to avoid redundantly running in every subdir.
|
||||
.if !defined(__MPATH)
|
||||
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
|
||||
.export __MPATH
|
||||
.endif
|
||||
|
||||
SUBDIR:= ${SUBDIR:u:O}
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user