[Scons-users] depending PHONY targets

Bill Deegan bill at baddogconsulting.com
Sun Jan 17 12:21:52 EST 2016


env.Alias + env.AlwaysBuild() should be the simplest way to do that.

.Phony tells make that the target doesn't represent a file  and since Make
builds all targets by default it builds that as well.

env.Alias = target doesn't represent a file
env.AlwaysBuild() tells SCons to always build that target.

-Bill

-Bill

On Sun, Jan 17, 2016 at 9:17 AM, Endre Bak <ebak32 at gmail.com> wrote:

> I mean that the target is not a file Node. The target is always executed
> when it is requested, there is no check to decide whether it is up-to-date
> or not.
>
> On Sun, Jan 17, 2016 at 5:54 PM, Bill Deegan <bill at baddogconsulting.com>
> wrote:
>
>> Alias() ?
>>
>> On Sun, Jan 17, 2016 at 4:05 AM, William Blevins <wblevins001 at gmail.com>
>> wrote:
>>
>>> I'm not sure what a PHONY target is unless maybe you are using the Make
>>> concept?
>>>
>>> On Sun, Jan 17, 2016 at 10:31 AM, Endre Bak <ebak32 at gmail.com> wrote:
>>>
>>>> Ok, I guess it will do:
>>>>
>>>> def PhonyTarget(env=None, target=None, source=None, action=None):
>>>> if not env: env = DefaultEnvironment()
>>>> env.AlwaysBuild(env.Alias(target, source, action))
>>>>
>>>> On Sun, Jan 17, 2016 at 11:06 AM, Endre Bak <ebak32 at gmail.com> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Is it possible in scons to create PHONY targets which are depending on
>>>>> other targets?
>>>>> I haven't found any example for it.
>>>>>
>>>>> Thanks
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Scons-users mailing list
>>>> Scons-users at scons.org
>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
> _______________________________________________
> 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/20160117/fd7b6dc6/attachment.html>


More information about the Scons-users mailing list