List Info

Thread: Opposite of .PHONY




Opposite of .PHONY
user name
2006-08-21 16:36:48
Hello group,

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?

Kind regards,
Thomas

-- A fool with a tool is still a fool, but a dangerous one.



_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
Opposite of .PHONY
user name
2006-08-23 11:57:21
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
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )