Make Concepts
Jump to navigation
Jump to search
Internal
.PHONY
By default, make
targets are assumed to be files on disk. They will be built from other files as result of executing make
with that name as argument. However, sometimes you want make
to run commands that do not represent physical files in the filesystem, and if there's a file with the same name in the filesystem, make
will be confused and will pick up the file. To avoid this, you can disambiguate with .PHONY
:
.PHONY: clean
clean:
rm -rf *.o