Subject: Re: "prepare" targets
To: J Chapman Flack <flack@cs.purdue.edu>
From: Adrian Portelli <adrianp@stindustries.net>
List: tech-pkg
Date: 03/06/2005 00:34:06
J Chapman Flack wrote:

> Here's the problem: they *all* have to be at "prepare" state, before
> any of them can advance to "all".  One approach I've thought of is a
> pre-build target, where I duplicate everything from do-build in bsd.pkg.mk
> only the target is  prepare  instead of ${BUILD_TARGET}.  But that requires
> me to duplicate a long ugly line of code from the guts of bsd.pkg.mk, and
> then it doesn't work anyway because it refers to som variables before they
> are defined.
> 
> Is there a good concise way to do this?

Hi,

As a suggestion you could try adding this to your Makefile:

BUILD_TARGET=	prepare all

See www/gtkasp2php and archivers/unzip for examples.

See the pkgsrc documentation for the details:
http://www.netbsd.org/Documentation/pkgsrc/

regards,

adrian.