[Scons-users] clarification on Depends()
Bill Deegan
bill at baddogconsulting.com
Tue Jun 5 00:28:27 EDT 2018
I think you mistyped your second Depend example?
Shouldn't it be this?
Depends('hello.o',['fake.txt'])
On Mon, Jun 4, 2018 at 9:05 PM, Jason Kenny <dragon512 at live.com> wrote:
> HI,
>
>
>
> I just want to clarify behavior of Depends() in SCons.
>
>
>
> I have a small sample:
>
>
>
> Depends(["hello.c")],["fake.txt"])
>
> Program("hello","hello.c")
>
>
>
>
>
> If I run this sample “hello” will build. If I change fake.txt, nothing
> will rebuild.
>
>
>
> I have a tree like this:
>
>
>
> +-hello
>
> | +-hello.o
>
> | | +-hello.c
>
> | | +-fake.txt
>
> | | +-/usr/bin/gcc
>
> | +-/usr/bin/gcc
>
>
>
> If I change the sample to this ( depends() is not hello.o vs hello.c)
>
>
>
> Depends(["hello.c")],["fake.txt"])
>
> Program("hello","hello.c")
>
>
>
> Now when I change fake.txt hello.o will rebuild. The tree here looks like:
>
>
>
> +-hello
>
> | +-hello.o
>
> | | +-hello.c
>
> | | +-fake.txt
>
> | | +-/usr/bin/gcc
>
> | +-/usr/bin/gcc
>
>
>
> Is this right… I have to know the target of a builder to use? I cannot use
> the source of a builder?
>
>
>
> Jason
>
>
>
> _______________________________________________
> 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/20180604/1d734a20/attachment.html>
More information about the Scons-users
mailing list