paint-brush
What Does .PHONY Do in a Makefile?by@alexandrunastase
2,833 reads
2,833 reads

What Does .PHONY Do in a Makefile?

by Alexandru Nastase2mFebruary 9th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The.PHONY directive is used to mark a target as phony. That means a target that doesn't take into consideration for execution any file that matches its name. Let's say we have a target called `clear-cache', which removes the cache of an application.
featured image - What Does .PHONY Do in a Makefile?
Alexandru Nastase HackerNoon profile picture
Alexandru Nastase

Alexandru Nastase

@alexandrunastase

Sr. Software Engineer ∙ Open Source Enthusiast ∙ Lifelong Learner

Learn More
LEARN MORE ABOUT @ALEXANDRUNASTASE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Alexandru Nastase HackerNoon profile picture
Alexandru Nastase@alexandrunastase
Sr. Software Engineer ∙ Open Source Enthusiast ∙ Lifelong Learner

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here