[Scons-users] Default() and Ignore() - seem a little awkward

Mats Wichmann mats at wichmann.us
Fri Jan 4 17:18:06 EST 2019


On 1/4/19 2:38 PM, Gary Oberbrunner wrote:
> For any significant SCons project, I always use something like
> Default(Alias("DefaultBuild")). Then I add targets to that alias if they
> should be in the default build. And I create other aliases for optional
> targets. I find that only rarely is the SCons default of building '.' what
> I really want by default.
> 
> BTW, it's simple to add to an Alias even without passing it around;
> Alias("DefaultBuild", my_target) works to add to it from anywhere deep in
> the build.
> 
> -- Gary

okay, thanks.

our project does do some things that hint at a similar approach though
not going the whole way, maybe I should be more trusting of the existing
code :)

cheers,

-- mats



More information about the Scons-users mailing list