[Top][All Lists]

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

RE: overriding recipe

From: Warlich, Christof
Subject: RE: overriding recipe
Date: Tue, 15 Nov 2011 14:15:38 +0100

> One simple thing is to create a sentinel variable specifying whether the
> targets have been defined.
> So, in you'd do something like:
>         FOO = foo
>         BAR = bar
>            ... other variables ...
>         ifndef TARGETS_DEFINED
>         TARGETS_DEFINED = 1
>         foo:
>               build a foo
>            ... other targets ...
>         endif
> Now the first time you included it TARGETS_DEFINED would not be defined,
> so you'd get the targets.  After that TARGETS_DEFINED would be defined
> and you wouldn't define them twice.

That was the workaround I used to use; but it somewhat uglifies the user
interface :-(, as the ifndef needs to be located in the Anyhow,
thanks for the confirmation that I'm out of luck w.r.t. this and a variable
containing the list targets.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]