From owner-freebsd-current Mon Apr 7 11:07:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA27963 for current-outgoing; Mon, 7 Apr 1997 11:07:57 -0700 (PDT) Received: from gaia.coppe.ufrj.br (root@cisigw.coppe.ufrj.br [146.164.2.31]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA27958 for ; Mon, 7 Apr 1997 11:07:54 -0700 (PDT) Received: (from jonny@localhost) by gaia.coppe.ufrj.br (8.8.5/8.7.3) id OAA27406; Mon, 7 Apr 1997 14:12:05 -0300 (EST) From: Joao Carlos Mendes Luis Message-Id: <199704071712.OAA27406@gaia.coppe.ufrj.br> Subject: Re: make -j3 on make world? To: scrappy@hub.org (The Hermit Hacker) Date: Mon, 7 Apr 1997 14:12:05 -0300 (EST) Cc: current@freebsd.org In-Reply-To: from The Hermit Hacker at "Mar 30, 97 05:10:15 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk #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