Date: Mon, 7 Apr 1997 14:12:05 -0300 (EST) From: Joao Carlos Mendes Luis <jonny@mailhost.coppe.ufrj.br> To: scrappy@hub.org (The Hermit Hacker) Cc: current@freebsd.org Subject: Re: make -j3 on make world? Message-ID: <199704071712.OAA27406@gaia.coppe.ufrj.br> In-Reply-To: <Pine.NEB.3.96.970330170741.199A-100000@thelab.hub.org> from The Hermit Hacker at "Mar 30, 97 05:10:15 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
#define quoting(The Hermit Hacker) // On Sun, 30 Mar 1997, The Hermit Hacker wrote: // // > // > Hi... // > // > Is there a way of doing a 'make -j3 world'? I've tried it, and it // > doesn't seem to work, based on what I observe when doing a 'make -j3' when // > building the kernel... // > // > // > // // // Hi again... // // In reply to my own email, I did some playing around last night // with the /usr/share/mk/* files, bsd.subdir.mk in particular, and came // up with: // // _SUBDIRUSE: .USE // @for entry in ${SUBDIR}; do \ // (if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \ // ${ECHODIR} "===> ${DIRPRFX}$${entry}.${MACHINE}"; \ // edir=$${entry}.${MACHINE}; \ // cd ${.CURDIR}/$${edir}; \ // else \ // ${ECHODIR} "===> ${DIRPRFX}$$entry"; \ // edir=$${entry}; \ // cd ${.CURDIR}/$${edir}; \ // fi; \ // ${MAKE} ${MAKEFLAGS} ${.TARGET:realinstall=install} DIRPRFX=${DIRPRFX}$$edir/); \ // done // // // The only change is adding ${MAKEFLAGS} to the ${MAKE} line so // that the -j3 flag carried down into the subdir's, so that make world // works with parellel make... // // Is there any reason that I'm overlooking why this *shouldn't* // be done this way? If not, and there are no arguments against it, I'd // like to make the change a permanent feature...? // Yes. If this worked you would create 3 copies of make for EACH subdirectory... Jonny -- Joao Carlos Mendes Luis jonny@gta.ufrj.br +55 21 290-4698 ( Job ) jonny@cisi.coppe.ufrj.br Network Manager UFRJ/COPPE/CISI Universidade Federal do Rio de Janeiro
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704071712.OAA27406>