|
Boost-Build : |
From: Jorge Suit Perez Ronda (josp_at_[hidden])
Date: 2006-04-19 13:17:47
---- bjam --version Boost.Build V2 (Milestone 10) Boost.Jam 03.01.10 ---- Hello, I have a project like this root | +- dir1 | +- dir2 | `- inc dir1 and dir2 contains .c source files and .h headers I want to create rule that create symbolic links to headers files in dir1 and dir2 into inc (only for unix) I tried to do something like this: Jamfile at root/inc: ---- import path ; rule header-link ( dirs * ) { if ! $(NT) { for local d in $(dirs) { for local h in [ GLOB [ path.join $(GBLA_ROOT) $(d) ] : *.h ] { ECHO $(h) ; # here i want to 'ln -s $(h) .' ; } } } } header-link dir1 dir2 ; ---- project-root.jam at root : ---- path-constant GBLA_ROOT : . ; import toolset : using ; import gcc ; ---- but I can not do something similar to: ln -s $(h) . Is there a way to do it? best regards, Jorge
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