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