Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

tools/build/v2/test/generators-test/nm.jam

import modules ;

rule target-source ( targets * : sources * : properties * )
{
    if [ modules.peek : NT ]
    {
        main on $(<) = "int main() { return 0; }" ;
    }
    else
    {
        main on $(<) = "\"int main() { return 0; }\"" ;
    }
}

actions target-source
{
    echo "NM target source consuming " $(>)
    echo $(main) > $(<)      
}

rule cpp-mark ( targets * : sources * : properties * )
{
}

actions cpp-mark
{
    echo "CPP-MARK consuming " $(>)
    touch $(<)
}