Boost logo

Boost-Build :

Subject: [Boost-build] REBUILDS rule help
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2012-11-19 18:45:32


Anyone know why this does not work i.e. when $(target) is updated, file.c is NOT deleted:

rule gen-ucfg ( target : source : properties * )
{
    common.Clean clean : file.c ;
    REBUILDS $(target) : clean ;
}

However, this works ok i.e. file.c is deleted when $(target) is built (which is built all the time and not the behavior I want):

rule gen-ucfg ( target : source : properties * )
{
    common.Clean clean : file.c ;
    DEPENDS $(target) : clean ;
}

Thanks,

Chris

________________________________

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.



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