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 
way?

Try a phony double-colon rule then.



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to