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