[Scons-users] How to build only a subset of targets under a directory
Bill Deegan
bill at baddogconsulting.com
Fri Apr 1 16:05:01 EDT 2022
Jay,
You can list all the targets individually, you don't need aliases..
scons dir/dir/target_file works
and you can specify N targets on the command line.
Is that what you're looking for?
-Bill
On Fri, Apr 1, 2022 at 12:13 PM Jay West <jhdub23 at gmail.com> wrote:
> Is there a way to build only a subset of targets under a directory,
> instead of all targets under that directory?
>
> For example:
>
> top/aa
> Alias('bin', bin_a)
> Alias ('test', test_a)
> top/bb
> Alias('bin', bin_b)
> Alias ('test', test_b)
>
> scons top/aa # builds bin_a and test_a
> scons bin # builds bin_a and bin_b
>
> I want to do something like:
> cd top/aa; scons bin # build only bin_a
>
> I know that I can define more aliases, but doing so is a maintenance
> headache. Is there better way?
>
> Thanks,
>
> Jay
>
> _______________________________________________
> 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/20220401/4b1714c3/attachment.htm>
More information about the Scons-users
mailing list