Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Mar 1997 17:10:15 -0400 (AST)
From:      The Hermit Hacker <scrappy@hub.org>
To:        current@freebsd.org
Subject:   Re: make -j3 on make world?
Message-ID:  <Pine.NEB.3.96.970330170741.199A-100000@thelab.hub.org>
In-Reply-To: <Pine.NEB.3.96.970330043056.2621Z-100000@thelab.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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...
	




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.970330170741.199A-100000>