help-make
[Top][All Lists]
Advanced

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

Re: Force Build a Target


From: Oleksandr Gavenko
Subject: Re: Force Build a Target
Date: Wed, 27 Apr 2011 18:14:11 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

On 27.04.2011 18:07, Ajay Jain wrote:
Hi,

My usecase is as follows:

out : objs

objs : 1.o 2.o 3.o

Now I want that (only) 2.o should always get regenerated, whenever I
run make. How should I do it?

Mark '2.o'  as PHONY target:

.PHONY: 2.o

But this cause 'objs' and 'out' always rebuild.

--
С уважением, Александр Гавенко.



reply via email to

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