Subject: Re: "prepare" targets
To: None <tech-pkg@NetBSD.org>
From: J Chapman Flack <flack@cs.purdue.edu>
List: tech-pkg
Date: 03/05/2005 19:49:30
Adrian Portelli suggested:

> As a suggestion you could try adding this to your Makefile:
> 
> BUILD_TARGET=	prepare all

Hi,

The difficulty is,  if I have BUILD_DIRS=foo bar baz and
BUILD_TARGET=prepare all, I get the behavior

cd foo && make prepare all
cd bar && make prepare all
cd baz && make prepare all

where what I need is

cd foo && make prepare
cd bar && make prepare
cd baz && make prepare
cd foo && make all
cd bar && make all
cd baz && make all

I see the archivers/unzip example completely overrides do-build - I could
certainly do that and it would work, I'm just looking for a less brute-
force approach.

Thanks,
-Chap