* 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