[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: builddir vs. srcdir
From: |
Ralf Wildenhues |
Subject: |
Re: builddir vs. srcdir |
Date: |
Thu, 10 Mar 2005 09:41:05 +0100 |
User-agent: |
Mutt/1.4.1i |
* Harald Dunkel wrote on Thu, Mar 10, 2005 at 09:27:34AM CET:
> Stepan Kasal wrote:
> >On Tue, Mar 08, 2005 at 11:56:56PM +0200, Paul Pogonyshev wrote:
> >
> >>foo.c foo.h : $(srcdir)/foo.list $(PARSE_LIST)
> >> $(PARSE_LIST) $(srcdir)/foo.list foo.h foo.c \
> >> || (rm -f foo.c foo.h ; exit 1)
> >
> >This rule can break with parallel make.
> >
> >You can solve the second issue by adding the dependency:
> >foo.c: foo.h
>
> Whats about a more general case
>
> SOMEFILES=a b c d e
>
> $(SOMEFILES): srcfile
> buildsomehow srcfile $(SOMEFILES) || (rm -f $(SOMEFILES); false)
Please read
info '(automake.info)Multiple Outputs'
which comes with a recent Automake and documents the whole issue very
thoroughly.
Regards,
Ralf
- Re: builddir vs. srcdir, (continued)
- Re: builddir vs. srcdir, Stepan Kasal, 2005/03/10
- Re: builddir vs. srcdir, Paul Pogonyshev, 2005/03/10
- Re: builddir vs. srcdir, Stepan Kasal, 2005/03/11
- Re: builddir vs. srcdir, Paul Pogonyshev, 2005/03/12
- Re: builddir vs. srcdir, Stepan Kasal, 2005/03/16
- Re: builddir vs. srcdir, Paul Pogonyshev, 2005/03/18
- Re: builddir vs. srcdir, Stepan Kasal, 2005/03/21
Re: builddir vs. srcdir, Harald Dunkel, 2005/03/10