It prevents a problem with existing file with same name as the target:
If the file is newer than its dependencies, target will be never rebuilt.
Here the .PHONY target dist is in dependencies, and I guess in this case
it would work, but I am not sure.
However, at least in make's info-pages I saw such targets added target
to .PHONY list. See:
http://www.gnu.org/software/automake/manual/make/Phony-Targets.html
Cheers,
Marian
James Laska wrote:
On Tue, 2009-04-14 at 16:09 +0200, Marian Csontos wrote:
> Hi James, my only (post-mortem) comment is "rpms" and "rpm"
targets
> should be made ".PHONY".
>
Thanks for the feedback Marian. I've never quite understood what .PHONY
is for, have any good doc links?
Attached requested patch.
Thanks,
James