[Scons-users] target
Keith Brown
keith6014 at gmail.com
Mon Jul 14 17:58:21 EDT 2014
so, does scons' target have anything special with variables?
Can someone provide me an example with target which isn't in the current
working directory?
On Sat, Jul 12, 2014 at 7:41 AM, Keith Brown <keith6014 at gmail.com> wrote:
> Hello,
>
> This works well.
>
> env=Environment()
> t1=env.Command(target="t1.done",
> source=[],
> action="task1 > $TARGET"
> )
>
> so, if t1.done is there task1 doesn't run
>
> now if I do
> t1=env.Command(target="/tmp/some/where/out/there/t1.done",
> source=[]
> action="task1"
> )
>
> it will still run task1 if /tmp/../../../t1.done is there.
>
> So, if task1 creates files internally
>
> #!/bin/bash
> #task1
> echo > /tmp/data/result
>
> Can I use /tmp/data/result as my target?
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140714/ab5835bb/attachment.html>
More information about the Scons-users
mailing list