GNU Make 4 · Rules and targets

Declare phony targets

Mark targets that are commands, not files, so a file with the same name doesn't stop them running.

.PHONY: all clean test

Official GNU Make 4 documentation

More rules and targets commands

All rules and targets commands · GNU Make 4 cheatsheet

Was this page helpful?