Boost logo

Boost-Build :

Subject: [Boost-build] <tag> on make "rules" ?
From: Michael Medin (michael_at_[hidden])
Date: 2009-01-14 16:45:16


Hello,

I have for quite some time now been trying to get my <tag> thingy to
work on a make "rule".
It works splendidly on other things like wix, exe and such but make
seems to ignore it all together.

Quick sample running bjam inst-txt below will not yield in any * * * nor
any modification on the "output target name". where as the exe one seems
to do that.

// Michael Medin

rule tag ( name : type ? : property-set )
{
    echo " * * * " ;
    return "hello" ;
}

exe test-exe
    : # sources
    test.c
    : # requirements
    <tag>@tag
    : # default build
    : # usage requirements
    ;

make # target-name
    test-txt
    : # sources
    test.txt
    : # generating-rule
    @test-rule
    : # requirements
    <tag>@tag
    : # usage-requirements
    ;

actions test-rule
{
    echo "building $(<)"
    echo hello > "$(<)"
}

install inst-txt : test-txt : <location>. ;
install inst-exe : test-exe : <location>. ;


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk