Makefile depencies broken?

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat Oct 3 10:43:40 MDT 2009

On Sat, Oct 03, 2009 at 11:48:37AM -0400, Derrell Lipman wrote:
> I think the target .PHONY is often used to avoid this problem, although I
> don't know if that's unique to GNU make or if it's commonly available. To
> use it,
> you'd add a new target like this, putting any phony targets in the list:
> .PHONY: libtalloc
> Then you don't need to create a libtalloc file to avoid the repeated
> linking.

But from the make manual I read:

> A phony target should not be a prerequisite of a real target
> file; if it is, its commands are run every time make goes to
> update that file. As long as a phony target is never a
> prerequisite of a real target, the phony target commands
> will be executed only when the phony target is a specified
> goal

Doesn't this mean that such a target can't be used in a

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <>

More information about the samba-technical mailing list