Paul Smith-20 wrote:
> 
> then it
> should depend on THAT (that is, the "obj" variable should contain the
> path to that object file) and not depend on the library in bar.
> 
> Then make the directories order-only prerequisites:
> 
>         .PHONY: $(sublibraries)
>         $(sublibraries) : 
>                $(MAKE) "--directory=$@" -f makefile.mak
>         
>         $(currlib) : $(obj) | $(sublibraries)
>                 ar -cqs $@ $(obj) 2>/dev/null
> 
> Now all the sublibraries rules will be done before $(currlib) is built,
> but it won't cause $(currlib) to be rebuilt.
> 
> 
No, this is defenetly what i don't want too. sublibraries have own makefiles
with own logic inside it (let's say 3rd party ones) and i want regulate all
dependencies inside them by calling submake and nothing more. $(currlib) 
shouldn't depend on ANY object inside $(sublibraries). 
-- 
View this message in context: 
http://old.nabble.com/Multidirectory-libraries-make-tp34041256p34047754.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.


_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to