automake
[Top][All Lists]
Advanced

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

Re: builddir vs. srcdir


From: Harald Dunkel
Subject: Re: builddir vs. srcdir
Date: Thu, 10 Mar 2005 09:27:34 +0100
User-agent: Debian Thunderbird 1.0 (X11/20050116)

Stepan Kasal wrote:
Hello,

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)

???



Regards

Harri




reply via email to

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