help-make
[Top][All Lists]
Advanced

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

Re: program creating two targets


From: Werner LEMBERG
Subject: Re: program creating two targets
Date: Tue, 02 Sep 2008 22:54:38 +0200 (CEST)

> > assume that program `bar' creates both `file1' and `file2'.  I
> > need a rule like this:
> >
> >   foo: file1 file2
> >           bar
> >
> > However, in a parallel build, this might call `bar' twice which is
> > bad (or might even fail).  On the other hand, it is important to
> > mention both files as prerequisites so that they are rebuilt in
> > case one of them is missing.
>
> Try this:
>
>   foo: | file1 file2
>           bar

Nope, this doesn't help.  make -nd shows exactly the same.


    Werner




reply via email to

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