help-make
[Top][All Lists]
Advanced

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

Re: program creating two targets


From: Boris Godin
Subject: Re: program creating two targets
Date: Tue, 02 Sep 2008 10:20:56 -0300
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

Try this:

  foo: | file1 file2
          bar


Werner LEMBERG wrote:
Folks,


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.

What solution do you suggest?  I haven't found a hint in the info
manual (of GNU make 3.81).


    Werner


_______________________________________________
Help-make mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-make

  


--
Boris Godin
Java Developer - Gameloft COR
Paraná 560, Nueva Córdoba (CP 5000)
Tel.: (+54 0351) 460 26 26 int. 111
MSN:
address@hidden

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

reply via email to

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