[Top][All Lists]

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

Re: Opposite of .PHONY

From: Maxim Yegorushkin
Subject: Re: Opposite of .PHONY
Date: Wed, 23 Aug 2006 12:57:21 +0100
User-agent: Thunderbird (X11/20060808)

Thomas Mogwitz wrote:

I'm using GNU make 3.81 and am trying to accomplish a goal that looks like the 
opposite of the
PHONY feature: I have a target named 'install', which is not an actual file, an 
has certain
prerequisites and a command (which basically copies the built binaries to the 
installation location).

Now I would like make to run the command only if one of the prerequisites has 
been remade. But
since 'install' is no file, make does it always. I don't really like the idea 
of creating an empty
file with each command that builds one of the prerequisites. Is there another 

Try a phony double-colon rule then.

reply via email to

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