tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Question about bmake in parallel mode



On Mon, Oct 28, 2013 at 07:38:28PM +0300, Aleksey Cheusov wrote:
> Hi. I'm developing an application with bmake as a build system.
> The simplified version of Makefile is below.
> The problem in it is that it doesn't work with -jN because
> order of build "realdelete" and "/tmp/first" (both they are dependencies
> for "delete")
> is not specified regardless phony target /tmp/first is a
> prerequisite for phony target "delete".
> 
> In general I often want to do the following. A target "first" is
> a prerequisite for phony target "last" which in turn has a number of
> prerequisites, and I want to build "first" before any prerequisite for
> "last"
> and "last" itself.

Use .WAIT as in:

foo: bar .WAIT baz

Nothing needed by baz will be built until bar is finished.
In effect this adds bar as a prerequisit for everything needed by baz.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index