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

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

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


From: Andrew Suffield
Subject: Re: [Gnu-arch-users] Build System links/ recommendations
Date: Fri, 3 Sep 2004 19:50:37 +0100
User-agent: Mutt/1.5.6+20040818i

On Fri, Sep 03, 2004 at 08:47:41PM +0200, Jan Hudec wrote:
> > Ok. This seems to work:
> > 
> > @foo : | @bar
> >     touch @foo
> > 
> > @foo : @bar
> > 
> > @bar :
> >     test -f @bar || touch @bar
> > 
> > But well, now do you really consider this obvious? It takes a hell lot
> > of reading the manual or asking stupid questions to make this work. And
> > it should be quite common thing to do with recursive makefiles...
> 
> Um. Looking again, NO, IT DOES NOT WORK.
> With .PHONY it updates @foo always, which it shouldn't.
> Without .PHONY it does not invoke the @bar rule, so it's prerequisites
> wouldn't be checked.

Phony on the wrong target.

@foo : | @bar-recursive
        touch @foo

@foo : @bar

@bar-recursive :
        test -f @bar || touch @bar

.PHONE: @bar-recursive

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

Attachment: signature.asc
Description: Digital signature


reply via email to

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