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                          na...@mips.inka.de

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to