bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nonexistent phony prerequisite


From: Christian Weisgerber
Subject: Nonexistent phony prerequisite
Date: Sat, 3 Sep 2016 13:51:44 +0200
User-agent: Mutt/1.6.1 (2016-04-27)

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                          address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]