Subject: Re: "prepare" targets
To: J Chapman Flack <>
From: Adrian Portelli <>
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
> 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, 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?


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: