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.