From b3a120de36b969a34388149a816fd8b57317debe Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 21 Dec 2000 20:21:24 +0000 Subject: [PATCH] Greatly speed up the modules `make obj' phase. --- sys/conf/Makefile.alpha | 12 ++++++------ sys/conf/Makefile.ia64 | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha index af83dca9ae41..0dc57fda028b 100644 --- a/sys/conf/Makefile.alpha +++ b/sys/conf/Makefile.alpha @@ -309,14 +309,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.ia64 b/sys/conf/Makefile.ia64 index 87e4376284aa..1ad84a0bd56d 100644 --- a/sys/conf/Makefile.ia64 +++ b/sys/conf/Makefile.ia64 @@ -272,14 +272,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