Greatly speed up the module `depend' phase.

This commit is contained in:
David E. O'Brien 2000-12-21 20:01:27 +00:00
parent 6ef9f30dfd
commit ded454a135
2 changed files with 12 additions and 12 deletions

View File

@ -270,14 +270,14 @@ reinstall reinstall.debug: modules-reinstall
MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
modules:
@mkdir -p ${.OBJDIR}/modules
cd $S/modules ; env ${MKMODULESENV} ${MAKE} obj ; \
env ${MKMODULESENV} ${MAKE} all
find ${.CURDIR}/$S/modules -type d -a ! -name CVS \
| sed -e "s|$S/modules|modules|g" | xargs mkdir -p ; \
cd $S/modules ; env ${MKMODULESENV} ${MAKE} all
modules-depend:
@mkdir -p ${.OBJDIR}/modules
cd $S/modules ; env ${MKMODULESENV} ${MAKE} obj ; \
env ${MKMODULESENV} ${MAKE} depend
find ${.CURDIR}/$S/modules -type d -a ! -name CVS \
| sed -e "s|$S/modules|modules|g" | xargs mkdir -p ; \
cd $S/modules ; env ${MKMODULESENV} ${MAKE} depend
modules-clean:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} clean

View File

@ -270,14 +270,14 @@ reinstall reinstall.debug: modules-reinstall
MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
modules:
@mkdir -p ${.OBJDIR}/modules
cd $S/modules ; env ${MKMODULESENV} ${MAKE} obj ; \
env ${MKMODULESENV} ${MAKE} all
find ${.CURDIR}/$S/modules -type d -a ! -name CVS \
| sed -e "s|$S/modules|modules|g" | xargs mkdir -p ; \
cd $S/modules ; env ${MKMODULESENV} ${MAKE} all
modules-depend:
@mkdir -p ${.OBJDIR}/modules
cd $S/modules ; env ${MKMODULESENV} ${MAKE} obj ; \
env ${MKMODULESENV} ${MAKE} depend
find ${.CURDIR}/$S/modules -type d -a ! -name CVS \
| sed -e "s|$S/modules|modules|g" | xargs mkdir -p ; \
cd $S/modules ; env ${MKMODULESENV} ${MAKE} depend
modules-clean:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} clean