List Info

Thread: lib rule dependancy on make rule, possible?




lib rule dependancy on make rule, possible?
country flaguser name
Australia
2007-05-29 20:01:38
Hi all,
I have come across this behavior which I don't understand, I
am trying to tie a 
make rule to a lib rule like below.  I was hoping that the
make rule would be 
evaluated as a dependent on the lib rule.  In order for the
dependency to be 
specified I was required to register .dfm files as a
recognized type.

Problem: I was expecting the following behavior:
1. If I was dependent on MyLib from another Jamfile(see
Jamfile-main) and 
$(TOP)/dfm/c.dfm did not exist it would invoke the make
rule

anyone?

thanks
mal


Jamfile-lib
------------------------------------------
lib MyLib : c.cpp $(TOP)/dfm/c.dfm : : ;

make $(TOP)/dfm/c.dfm : c.dfm : do-copy ;



Jamfile-main
------------------------------------------
exe m : b.cpp $(TOP)/lib2//MyLib : :
<include>$(TOP)/lib2 : ;

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: lib rule dependancy on make rule, possible?
country flaguser name
Australia
2007-05-29 23:35:30
the following seems to work:
lib MyLib : c.cpp :
<dependency>$(DFM_INSTALL)/menu_form.dfm ;

I still don't understand why below doesn't work...

Malcolm Cifuentes wrote:
> Hi all,
> I have come across this behavior which I don't
understand, I am trying to tie a 
> make rule to a lib rule like below.  I was hoping that
the make rule would be 
> evaluated as a dependent on the lib rule.  In order for
the dependency to be 
> specified I was required to register .dfm files as a
recognized type.
> 
> Problem: I was expecting the following behavior:
> 1. If I was dependent on MyLib from another Jamfile(see
Jamfile-main) and 
> $(TOP)/dfm/c.dfm did not exist it would invoke the make
rule
> 
> anyone?
> 
> thanks
> mal
> 
> 
> Jamfile-lib
> ------------------------------------------
> lib MyLib : c.cpp $(TOP)/dfm/c.dfm : : ;
> 
> make $(TOP)/dfm/c.dfm : c.dfm : do-copy ;
> 
> 
> 
> Jamfile-main
> ------------------------------------------
> exe m : b.cpp $(TOP)/lib2//MyLib : :
<include>$(TOP)/lib2 : ;
> 
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
> 

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )