From owner-freebsd-current Sun Mar 30 13:10:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA12834 for current-outgoing; Sun, 30 Mar 1997 13:10:36 -0800 (PST) Received: from thelab.hub.org (hal-ns1-36.netcom.ca [207.181.94.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA12826 for ; Sun, 30 Mar 1997 13:10:30 -0800 (PST) Received: from thelab.hub.org (localhost [127.0.0.1]) by thelab.hub.org (8.8.5/8.8.2) with SMTP id RAA10954 for ; Sun, 30 Mar 1997 17:10:15 -0400 (AST) Date: Sun, 30 Mar 1997 17:10:15 -0400 (AST) From: The Hermit Hacker To: current@freebsd.org Subject: Re: make -j3 on make world? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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...? Thanks...