List Info

Thread: Question regarding rules




Question regarding <tag> rules
user name
2006-02-28 07:23:03
On Monday 27 February 2006 23:27, Daniel Einspanjer wrote:
> In test/tag.py, the test tag rule in invoked using the
__name__ variable.
> e.g.
> exe a : a.cpp : <tag>$(__name__).tag ;
> lib b : a.cpp : <tag>$(__name__).tag ;
>
> Why is this?  

I think that because originally, the value of <tag>
was required to be 
fully-qualified rule name. 

> I originally wrote the invocation of my tag rule as 
> exe test : test.cpp : <tag>brand
>
> And it *seems* to work just fine...

Later, I was hacking on the 'make' and 'notfile' rules,
and decided that 
__name__ is too obscure, so I fixed the internal mechanism
that handles "" 
values of features. That made full name unnecessary for all
features, 
including <tag>.

I've just modified the testcase to use both full name and
local name, and it 
works fine. I've committed this change.

- Volodya



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )