Subject: Re: dependancies / multiple lex/yacc parsers
To: Bryan Cribbs <>
From: Martin Husemann <>
List: netbsd-users
Date: 05/21/2004 08:54:52
On Fri, May 21, 2004 at 01:03:53AM -0500, Bryan Cribbs wrote:
> This works fine from the toplevel if 'make dependall' is used,
> otherwise it will fail (most of the time, e.g. in a clean
> environment 'make' will try to build the toplevel source first
> but the ar's won't exist).  Can I coerce this to have a plain
> 'make' do the right thing?

The usual trick in our tree is to move the "main" sources into a subdir
themself, and have that listed later in the Makefile, with a .wait before
it (so that parallel makes still do the right thing).