gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] Re: Build System links/ recommendations


From: Jan Hudec
Subject: Re: [Gnu-arch-users] Re: Build System links/ recommendations
Date: Sun, 5 Sep 2004 09:23:24 +0200
User-agent: Mutt/1.5.6+20040818i

On Sun, Sep 05, 2004 at 02:12:38 +0200, Robin Farine wrote:
> On Sunday 05 September 2004 00.15, Andrew Suffield wrote:
> > Other approaches exist. This is the one I use. I'm not very
> > familiar with the others; I'd have to spend a couple hours
> > working it out, and I really don't have the time.
> 
> This looks too simple so I must have missed something, but it looks 
> like it is equivalent.
> 
> 
> * toplevel Makefile:
> 
> myprog: subdir/mylib
>       touch $@
> 
> subdir/mylib: subdir-libs
> 
> .PHONY: subdir-libs
> subdir-libs:
>       $(MAKE) -C subdir libs
> 
> 
> * subdir Makefile:
> 
> .PHONY: libs
> libs: mylib
> 
> mylib:
>       touch $@

So try it ;-). You'll find out it isn't. It checks the timestamp on
subdir/mylib too early and even if the subdir makefile does something,
myprog is not relinked.

-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec 
<address@hidden>

Attachment: signature.asc
Description: Digital signature


reply via email to

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