Subject: Re: Question about controlling the parallelism of make
To: NetBSD Current Users <current-users@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: current-users
Date: 12/12/2007 17:22:46
On Wed, 12 Dec 2007, Chris Ross wrote:
>   I have a software package that is a library directory, and a
> set of application directories all of which need the library
> to be built first.  With no help, the bsd.subdir.mk at the top
> will cause them to be built in parallel, which will fail.  If
> I do:
>
> SUBDIR = lib a b c
> .ORDER: all-lib all-a
>
>   then it will build lib, before building a.  However, it builds
> a alone, then b and c in parallel.

I think you are looking for

	SUBDIR = lib .WAIT a b c

There's some magic in bsd.subdir.mk that's supposed to make this work.

--apb (Alan Barrett)