[Scons-users] Using Alias

William Blevins wblevins001 at gmail.com
Wed Jan 4 21:50:17 EST 2017


Pierre-Luc,

The Default target is the root SCons directory, so any targets under said
directory are automatically apart of the Default target since they are
considered dependencies (IE. under the directory).

You can do as you already stated. Reset the Default target to only those
you want to build by default. Consider the following source tree:

   - # (SCons root)
      - src
         - bin
            - exec_1
            - exec_2
            - lib
            - lib_1
            - lib_2
            - lib_3
            - test
         - bin
         - lib
      - examples
         - bin
            - example_1
            - example_2


Original case: all exec, lib, and example build since they are child
targets under the root "." or symbolically #
Build src only: set the Default to the 'src' directory to ensure all
targets under 'src' build. If you only want exec_1 (and all its
dependencies), set Default to 'src/bin/exec_1' (you get it's dependencies
automatically.

V/R,
William

On Wed, Jan 4, 2017 at 6:52 PM, Pierre-Luc Boily <pierreluc.boily at gmail.com>
wrote:

> If rereread the doc, I think I need to use either Default for all my
> Programs/Libs or Default(None) to force users to specify a target. Then, my
> example above should work, it *won't *be invoke when typing "scons" or
> "scons ."
>
> In our code base, we have many Programs and Libs.  Do I need to use Default
> for all of them, or just using it for Program is enough?
>
>
>
> --
> View this message in context: http://scons.1086193.n5.
> nabble.com/Using-Alias-tp40922p40923.html
> Sent from the Users mailing list archive at Nabble.com.
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170104/52e5faf2/attachment.html>


More information about the Scons-users mailing list