Reduce duplicated logic from r291744.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-03-12 22:21:14 +00:00
parent ebf5587eca
commit ec4047ade2
3 changed files with 6 additions and 11 deletions

View File

@ -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

View File

@ -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}

View File

@ -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>