Boost logo

Boost-Build :

Subject: Re: [Boost-build] Copying targets
From: Udo Steinbach (steinbach_at_[hidden])
Date: 2011-05-27 01:58:28

Am 2011-05-26 13:09, schrieb Juraj Ivanèiæ:
> > in a Jamfile I build several programs. Now I want to copy (on
> > demand) all generated programs and dlls into one special directory
> > OR to copy all ...
> install copyprograms : myDLL myEXE : <location>$(SPECIAL_DIR) ;

But what if I generate only some of the possible targets? I have quite a
number of programs, but I only sometimes generate them all and so
copying should also work if I call bjam with only one target.
It seems to me that the simple target rules, including install, only
work when the names are known at the point of using the rule.
I tried to collect the target names by using <tag>. That worked. But the
following install copyprogs : $(AllTargets)...  throwed an error.
Is this the reason that the boost Jamroot uses classes and "generate"?
Do I have to use it too or is there a simpler way possible?

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