Re: Default() and Ignore() - seem a little awkward
Bill Deegan <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAEyG4CEHZYgLti1mO+rP9T3W3U7GCZiq4XrPCy38kgQkn98FbQ@mail.gmail.com> |
Could what you want to do be better achieved by not adding the examples in your relevant SConscript if such target(s) aren't asked for? On Fri, Jan 4, 2019 at 5:18 PM Mats Wichmann <[email protected]> wrote: > 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 > > _______________________________________________ > Scons-users mailing list > [email protected] > https://pairlist4.pair.net/mailman/listinfo/scons-users > _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users