Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to create empty directory on install
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-10-23 07:03:37


On Tuesday, October 19, 2010 02:34:45 M Levin wrote:
> Евгений Шубин <shubin_evgeniy <at> mail.ru> writes:
> > common.MkDir $(INSTALL_PATH)/run ;
> > common.MkDir $(INSTALL_PATH)/log ;
>
> Quite confusingly, these commands do not create directories and do not
> produce errors.
>
> This command works as expected
> make $(INSTALL_PATH)/run : : @common.mkdir ;
>
> It works even without statement
> import common ;
>
> This took me a very long time to figure out even though I have been using
> boost.build for several years.
>
> Also, the example from
> http://www.boost.org/boost-build2/doc/html/bbv2/builtins/raw.html
>
> notfile echo_something : @echo ;
> actions echo
> {
> echo "something"
> }
>
> produces an error. Should it be NOTFILE ?

If it produces error, it means you have old Boost.Build. Could you try with a
nightly build at http://boost.org/boost-build2 ?

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

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