diff options
author | obrien <obrien@FreeBSD.org> | 2000-12-21 20:01:27 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-12-21 20:01:27 +0000 |
commit | f8004b2d22b1ad7dda77a91ca945dd927304e128 (patch) | |
tree | e134449e674526905835f2d45cdcee1360a139d7 | |
parent | 124f1f9df98f451e5de6c7755b0bbaab9e0fb50e (diff) | |
download | FreeBSD-src-f8004b2d22b1ad7dda77a91ca945dd927304e128.zip FreeBSD-src-f8004b2d22b1ad7dda77a91ca945dd927304e128.tar.gz |
Greatly speed up the module `depend' phase.
-rw-r--r-- | sys/conf/Makefile.i386 | 12 | ||||
-rw-r--r-- | sys/conf/Makefile.powerpc | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386 index 47764bd..a3ab8cc 100644 --- a/sys/conf/Makefile.i386 +++ b/sys/conf/Makefile.i386 @@ -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 diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc index 47764bd..a3ab8cc 100644 --- a/sys/conf/Makefile.powerpc +++ b/sys/conf/Makefile.powerpc @@ -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 |