News for hackers. Stuff that matters.
Re:Learn Makefiles with the Tastiest Examples by paulddraper on Tuesday May 16, 2023 @04:34AM (#35959075)
.PHONY is how you distinguish between targets that are actual files vs targets that are virtual.

Seems like useful information to me....

It's best practice, though the only time you need it is when a virtual target happens to have the same name as an actual file.

There are no comments on this comment yet.