help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multidirectory libraries make


From: icegood
Subject: Re: Multidirectory libraries make
Date: Thu, 21 Jun 2012 02:55:12 -0700 (PDT)



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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]