Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-26 04:07:26

On Saturday 15 April 2006 01:53, Graly, Marcus (US SSA) wrote:
> Hello,
> I'm trying to write Jamfiles that perform basic system operations,
> specifically copy and delete. Is this possible to do in Bjam, and if so,
> what is the syntax?

Hi Marcus,

in order to copy a file if target file does not exist, you'd need the 'make'

   make dst : src : copy ;
   actions copy
       cp $(>) $(<)

to remove a specific file (unconditionally), write:

   notfile remove_them : remove : file ;
   actions remove
       rm $(>)

both approaches are not very portable (they use specific tool names), but
that's all we have at the moment. Can you tell why you're looking for such
actions? Maybe, the 'install' rule together with the --clean, option will be

- Volodya

Vladimir Prus
Boost.Build V2:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at