Hello, Akim!

> Is this only GNU Make, or a general property?
>
> /tmp % cat Makefile                                                  21:37 remo
> all: foo bar
> .PHONY: all foo
> /tmp % make                                                          21:37 remo
> make: *** No rule to make target `bar', needed by `all'.  Stop.

$ pmake
pmake: Don't know how to make target `foo'
$ rpm -qa |grep pmake
pmake-2.1.34-6

So it's not a general property. But why are you asking whether .PHONY
targets are needed?

You are declaring a target PHONY without providing a rule for it (foo).
It's not what Automake does.

The real usefulness on .PHONE if that "all" will be remade even if a file
named "all" exists for some reason in the current directory (or in VPATH).

Regards,
Pavel Roskin


Reply via email to