I ran into this surprising behavior (GNU Make 4.2.1):
--------------------
foo: phony
touch foo
.PHONY: phony
--------------------
$ gmake
touch foo
A nonexistent prerequisite is ignored if it is marked as phony.
Is this a bug or a strange feature? A different make(1) implementation
complains:
$ make
make: don't know how to make phony (prerequisite of: foo)
--
Christian "naddy" Weisgerber [email protected]
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make