|
Boost-Build : |
Subject: Re: [Boost-build] using make rule in conjunction with target-os
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2010-05-28 15:06:45
On 5/28/2010 12:35 PM, Jim Gallagher wrote:
> In our project tree, we have some sub-projects that are just scripts.
> Nothing to build, but I would like to have these staged along with the
> stuff that is built. Some of the scripts are not portable, so I would
> like to do something like this:
>
> constant CONFIG : $(STAGE_SERVER)/resources/config.dat ;
> constant SCRIPT : $(STAGE_SERVER)/bin/script.sh ;
> constant SCRIPT2 : $(STAGE_SERVER)/bin/script.bat ;
>
> make $(CONFIG) : config.dat : @common.copy ;
> make $(SCRIPT) : script.bat : @common.copy :<target-os>windows ;
> make $(SCRIPT2) : script.sh : @common.copy :<target-os>hpux ;
>
> alias stage : $(CONFIG) $(SCRIPT) $(SCRIPT2) ;
>
> The problem is that the make rule does not seem to pay attention to
> the target-os requirement. Is this intentional?
It works for me.. I use it as:
make icon.png : other/standard/iphone/icon.png
: @image2icon : <configuration>standard <target-os>iphone ;
make icon.png : other/limited/iphone/icon.png
: @image2icon : <configuration>limited <target-os>iphone ;
Which pays attention to both <configuration> (a custom feature I have)
and <target-os> (only iPhone for this project but I have other that also
include Windows).
Perhaps it's the missing space before the <target-os>? Not sure if you
have it that way in your actual files.
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org (msn) - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail
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